Skip to content

Instantly share code, notes, and snippets.

@h-east
Created October 16, 2016 09:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save h-east/90f60b514295dd78081316bb4941a9b9 to your computer and use it in GitHub Desktop.
Save h-east/90f60b514295dd78081316bb4941a9b9 to your computer and use it in GitHub Desktop.
diff --git a/src/screen.c b/src/screen.c
index 0889db9..2fd1a52 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -7790,7 +7790,7 @@ next_search_hl_pos(
if (pos->lnum == 0)
break;
- if (pos->col + pos->len - 1 <= mincol)
+ if (pos->len == 0 && pos->col < mincol)
continue;
if (pos->lnum == lnum)
{
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment