1
0
forked from aniani/vim

patch 8.2.0773: switching to raw mode every time ":" is used

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.
This commit is contained in:
Bram Moolenaar
2020-05-16 23:15:08 +02:00
parent df671b4629
commit 3b1f18f785
6 changed files with 26 additions and 8 deletions

View File

@@ -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