Skip to content

Commit

Permalink
fix martanne#1074 were secondary selections where considered visible
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremybobbin committed Feb 11, 2023
1 parent 1abf7ee commit 019b59c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion view.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ bool view_coord_get(View *view, size_t pos, Line **retline, int *retrow, int *re
size_t cur = view->start;
Line *line = view->topline;

if (pos < view->start || pos > view->end) {
if (pos < view->start || pos >= view->end) {
if (retline) *retline = NULL;
if (retrow) *retrow = -1;
if (retcol) *retcol = -1;
Expand Down

0 comments on commit 019b59c

Please sign in to comment.