summaryrefslogtreecommitdiffstats
path: root/src/input.c
diff options
context:
space:
mode:
authorAndrés <andmarti@gmail.com>2023-06-01 18:43:51 -0300
committerAndrés <andmarti@gmail.com>2023-06-01 18:43:51 -0300
commit91e08e397502d2da20169e0bb4a2c41aa9c38fba (patch)
treea1fc07bb21c15eff1b4148d1568eac30e5b3da80 /src/input.c
parentb1ba526d0be4b4ceff13b4d89ebfcaba954d26a3 (diff)
parent25254962d0926e638b7cd360ce329814db5c7d59 (diff)
Merge branch 'pr-626' into dev
Diffstat (limited to 'src/input.c')
-rw-r--r--src/input.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/input.c b/src/input.c
index 7df6b16..46f2451 100644
--- a/src/input.c
+++ b/src/input.c
@@ -238,7 +238,10 @@ void break_waitcmd_loop(struct block * buffer) {
} else if (curmode == VISUAL_MODE) {
exit_visualmode();
}
- if (curmode == INSERT_MODE && lastmode == EDIT_MODE) {
+ if (
+ curmode == INSERT_MODE &&
+ ( lastmode == EDIT_MODE || get_conf_int("input_edit_mode") )
+ ) {
if (inputline_pos && wcslen(inputline) >= inputline_pos) {
real_inputline_pos--;
int l = wcwidth(inputline[real_inputline_pos]);