diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2024-03-26 10:20:21 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2024-03-26 10:20:21 +0000 |
commit | 36df27fbb43812dc6e8c21791edb6129fb21dc8f (patch) | |
tree | d33ea7d9a5fbe48653d7867d2b6306984f9c7e9a /usr.bin/tmux | |
parent | f8501236c8874fa6ac674b6550e12b7945636e9b (diff) |
Fix selection present check, reported by M Kelly.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r-- | usr.bin/tmux/window-copy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/window-copy.c b/usr.bin/tmux/window-copy.c index 913f3510333..3ae46cdc986 100644 --- a/usr.bin/tmux/window-copy.c +++ b/usr.bin/tmux/window-copy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: window-copy.c,v 1.346 2024/03/21 11:26:28 nicm Exp $ */ +/* $OpenBSD: window-copy.c,v 1.347 2024/03/26 10:20:20 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -805,7 +805,7 @@ window_copy_formats(struct window_mode_entry *wme, struct format_tree *ft) format_add(ft, "selection_active", "1"); else format_add(ft, "selection_active", "0"); - if (data->endselx != data->selx && data->endsely != data->sely) + if (data->endselx != data->selx || data->endsely != data->sely) format_add(ft, "selection_present", "1"); else format_add(ft, "selection_present", "0"); |