tFix wrong message shown while substituting with confirmation - ledit - Text editor (WIP)
HTML git clone git://lumidify.org/ledit.git (fast, but not encrypted)
HTML git clone https://lumidify.org/git/ledit.git (encrypted, but very slow)
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 2d31c87c125a439d6aecd05468723ed891564850
DIR parent d05c901052dbfd84f4653ac95918871b4d4c8f5b
HTML Author: lumidify <nobody@lumidify.org>
Date: Tue, 19 Jul 2022 09:55:26 +0200
Fix wrong message shown while substituting with confirmation
Diffstat:
M keys_command.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
DIR diff --git a/keys_command.c b/keys_command.c
t@@ -711,7 +711,7 @@ substitute_yes(ledit_view *view, char *key_text, size_t len, size_t lang_index)
sub_state.byte += sub_state.rlen;
}
int ret = move_to_next_substitution(view);
- if (ret)
+ if (!ret)
show_num_substituted(view);
return ret;
}
t@@ -734,7 +734,7 @@ substitute_no(ledit_view *view, char *key_text, size_t len, size_t lang_index) {
sub_state.byte += sub_state.slen;
}
int ret = move_to_next_substitution(view);
- if (ret)
+ if (!ret)
show_num_substituted(view);
return ret;
}