summaryrefslogtreecommitdiff
path: root/src/os_win32.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-05-16 23:15:08 +0200
committerBram Moolenaar <Bram@vim.org>2020-05-16 23:15:08 +0200
commit3b1f18f785f67c6cd110498c366e4d0c0fe11f27 (patch)
treeda0f950520c6e802bae80dda08a517b402a358da /src/os_win32.c
parentdf671b4629a0c6451c067cafd2534b7261f41277 (diff)
downloadvim-git-3b1f18f785f67c6cd110498c366e4d0c0fe11f27.tar.gz
patch 8.2.0773: switching to raw mode every time ":" is usedv8.2.0773
Problem: Switching to raw mode every time ":" is used. Solution: When executing a shell set cur_tmode to TMODE_UNKNOWN, so that the next time TMODE_RAW is used it is set, but not every time.
Diffstat (limited to 'src/os_win32.c')
-rw-r--r--src/os_win32.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/os_win32.c b/src/os_win32.c
index 52bc95de8..d77e21691 100644
--- a/src/os_win32.c
+++ b/src/os_win32.c
@@ -4899,7 +4899,11 @@ mch_call_shell(
}
if (tmode == TMODE_RAW)
+ {
+ // The shell may have messed with the mode, always set it.
+ cur_tmode = TMODE_UNKNOWN;
settmode(TMODE_RAW); // set to raw mode
+ }
// Print the return value, unless "vimrun" was used.
if (x != 0 && !(options & SHELL_SILENT) && !emsg_silent