From f20cbce4a5cb94c0dadeb386eea49599c9823839 Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Sun, 29 Apr 2018 00:03:59 +0200 Subject: [PATCH] Clear search on stopping incsearch. The search highlight was not removed if incsearch was enabled and the search not commited by but left by . --- src/ex.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ex.c b/src/ex.c index 98da593..a8acc7b 100644 --- a/src/ex.c +++ b/src/ex.c @@ -242,6 +242,9 @@ void ex_leave(Client *c) { completion_clean(c); hints_clear(c); + if (c->config.incsearch) { + command_search(c, &((Arg){0, NULL}), FALSE); + } } /** -- 2.20.1