aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/misc1.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-02-28 12:13:33 +0100
committerJustin M. Keyes <justinkz@gmail.com>2019-03-01 01:56:17 +0100
commit1a0ee090ab09e859d84b5057d3b2b4ad91cf9baf (patch)
treef4b057cf0f52462a199830aa384cd0f3ab5fc4ff /src/nvim/misc1.c
parentb183534c819a91b9e077c55f522db27ea7f7d910 (diff)
downloadrneovim-1a0ee090ab09e859d84b5057d3b2b4ad91cf9baf.tar.gz
rneovim-1a0ee090ab09e859d84b5057d3b2b4ad91cf9baf.tar.bz2
rneovim-1a0ee090ab09e859d84b5057d3b2b4ad91cf9baf.zip
vim-patch:8.1.0963: illegal memory access when using 'incsearch'
Problem: Illegal memory access when using 'incsearch'. Solution: Reset highlight_match when changing text. (closes vim/vim#4022) https://github.com/vim/vim/commit/4a7d2d3b407ed695450bb7f43166e2f2722a6836
Diffstat (limited to 'src/nvim/misc1.c')
-rw-r--r--src/nvim/misc1.c3
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;
}
/*