summaryrefslogtreecommitdiffstats
path: root/smenu.c
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2022-11-10 23:13:19 +0100
committerpgen <p.gen.progs@gmail.com>2022-11-10 23:13:19 +0100
commitcad6ed5a6281941ebafe9d776f9b71947a04e620 (patch)
tree33ba2bf398f80577d0eecacac622b73cd64ff9db /smenu.c
parentd1601eb2431fa17a57ceddd7b43f66fdb29fc634 (diff)
Fix a small error in the selection with the mouse
The detection of long lines is not done correctly, which results in the selection of a word when the mouse pointer is not exactly on it.
Diffstat (limited to 'smenu.c')
-rw-r--r--smenu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/smenu.c b/smenu.c
index d470456..1660173 100644
--- a/smenu.c
+++ b/smenu.c
@@ -3880,10 +3880,10 @@ disp_lines(win_t * win, toggle_t * toggles, long current, long count,
strcpy(scroll_symbol, shift_left_sym);
else
strcpy(scroll_symbol, "<");
-
- if (!win->has_truncated_lines)
- win->has_truncated_lines = 1;
}
+
+ if (!win->has_truncated_lines)
+ win->has_truncated_lines = 1;
}
else
scroll_symbol[0] = '\0';