diff options
author | pgen <p.gen.progs@gmail.com> | 2022-09-06 16:12:54 +0200 |
---|---|---|
committer | pgen <p.gen.progs@gmail.com> | 2022-09-06 16:19:25 +0200 |
commit | 1082ebf1bb1d328dccffcb415f03226086f339d1 (patch) | |
tree | f26035db7323ccc052220e60d98abd5aa735bdf3 | |
parent | 92f1a401d6821a6c80ef31375dfd01d58f7f3a0b (diff) |
Fix a test in shifting to keep the cursor visible
-rw-r--r-- | smenu.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4488,7 +4488,7 @@ shift_left(win_t * win, term_t * term, toggle_t * toggles, /* Make sure the word under the cursor remains visible. */ /* """""""""""""""""""""""""""""""""""""""""""""""""""" */ len = term->ncolumns - 3; - if (word_a[current].end > len + word_a[pos].start) + if (word_a[current].end >= len + word_a[pos].start) return; win->first_column = word_a[pos].start; |