diff options
author | Lewis Russell <lewis6991@gmail.com> | 2022-03-18 13:15:18 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-18 21:15:18 +0800 |
commit | 9e66d27d37d2260358783c043fdb636bf881e85f (patch) | |
tree | d8788e3e7dd8cad324811bec817d7e46cf0d1ced | |
parent | 0a81a33a9d0fe6c61ab98da0c0212b3b343f3591 (diff) | |
download | rneovim-9e66d27d37d2260358783c043fdb636bf881e85f.tar.gz rneovim-9e66d27d37d2260358783c043fdb636bf881e85f.tar.bz2 rneovim-9e66d27d37d2260358783c043fdb636bf881e85f.zip |
fix(syntax.c): correct hunk from Vim patch 8.0.0647 (#17761)
-rw-r--r-- | src/nvim/screen.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c index bc9c6bbe00..60de4e479e 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -2623,9 +2623,6 @@ static int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow, bool noc } next_search_hl(wp, shl, lnum, (colnr_T)v, shl == &search_hl ? NULL : cur); - if (wp->w_s->b_syn_slow) { - has_syntax = false; - } // Need to get the line again, a multi-line regexp may have made it // invalid. @@ -3383,6 +3380,10 @@ static int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow, bool noc did_emsg = save_did_emsg; } + if (wp->w_s->b_syn_slow) { + has_syntax = false; + } + // Need to get the line again, a multi-line regexp may // have made it invalid. line = ml_get_buf(wp->w_buffer, lnum, false); |