aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/match.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/match.c')
-rw-r--r--src/nvim/match.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/match.c b/src/nvim/match.c
index 54bd3066ab..d5e3d8cddc 100644
--- a/src/nvim/match.c
+++ b/src/nvim/match.c
@@ -494,10 +494,10 @@ static void next_search_hl(win_T *win, match_T *search_hl, match_T *shl, linenr_
shl->lnum += shl->rm.startpos[0].lnum;
break; // useful match found
}
-
- // Restore called_emsg for assert_fails().
- called_emsg = save_called_emsg;
}
+
+ // Restore called_emsg for assert_fails().
+ called_emsg = save_called_emsg;
}
/// Advance to the match in window "wp" line "lnum" or past it.