summaryrefslogtreecommitdiffstats
path: root/src/os_win32.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-10-03 20:24:39 +0100
committerBram Moolenaar <Bram@vim.org>2022-10-03 20:24:39 +0100
commit01c34e7d10e3dbd73d18a3dd79a48748c4147eaf (patch)
treeca71ff2c5e6dd418b009f9de330142e7c0b4c4c2 /src/os_win32.c
parentb6aab8f44beb8c5d99393abdc2c9faab085c72aa (diff)
patch 9.0.0653: BS and DEL do not work properly in an interacive shellv9.0.0653
Problem: BS and DEL do not work properly in an interacive shell. (Gary Johnson) Solution: Adjust the length for replaced codes.
Diffstat (limited to 'src/os_win32.c')
-rw-r--r--src/os_win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os_win32.c b/src/os_win32.c
index 5d544b2413..644e647521 100644
--- a/src/os_win32.c
+++ b/src/os_win32.c
@@ -4531,7 +4531,7 @@ mch_system_piped(char *cmd, int options)
}
}
- term_replace_bs_del_keycode(ta_buf, ta_len, len);
+ len = term_replace_bs_del_keycode(ta_buf, ta_len, len);
/*
* For pipes: echo the typed characters. For a pty this