summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2023-11-13 22:56:06 +1100
committerMaxime Coste <mawww@kakoune.org>2023-11-13 22:56:06 +1100
commitc2fb0738d3171956c133a2a48bbecd3b5ec30a3c (patch)
tree24e5c5369c647d10f4981d2c1ae4417f2358ccb1 /src
parentc7d887d9d1567ea06d07affc01419143bafbf922 (diff)
parentc597a056d09daa67f028ffd04cab5041f5e56dcb (diff)
Merge remote-tracking branch 'krobelus/fix-noincsearch'
Diffstat (limited to 'src')
-rw-r--r--src/normal.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/normal.cc b/src/normal.cc
index 69fc9285..ebe86ebc 100644
--- a/src/normal.cc
+++ b/src/normal.cc
@@ -860,7 +860,9 @@ void regex_prompt(Context& context, String prompt, char reg, T func)
{
case PromptEvent::Abort: return;
case PromptEvent::Change:
- if (incsearch and not str.empty())
+ if (not incsearch)
+ return;
+ if (not str.empty())
RegisterManager::instance()[reg].set(context, str.str());
break;
case PromptEvent::Validate: