diff options
Diffstat (limited to 'src/nvim/misc1.c')
-rw-r--r-- | src/nvim/misc1.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/misc1.c b/src/nvim/misc1.c index e752910a4b..a8cfc2d700 100644 --- a/src/nvim/misc1.c +++ b/src/nvim/misc1.c @@ -1819,6 +1819,9 @@ void changed(void) changed_int(); } buf_inc_changedtick(curbuf); + + // If a pattern is highlighted, the position may now be invalid. + highlight_match = false; } /* |