Mercurial > vim
comparison src/os_amiga.c @ 20437:3bb4dea4a164 v8.2.0773
patch 8.2.0773: switching to raw mode every time ":" is used
Commit: https://github.com/vim/vim/commit/3b1f18f785f67c6cd110498c366e4d0c0fe11f27
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat May 16 23:15:08 2020 +0200
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 16 May 2020 23:30:03 +0200 |
parents | 1fe99999625c |
children | d4b2a8675b78 |
comparison
equal
deleted
inserted
replaced
20436:d64dba8d8a9d | 20437:3bb4dea4a164 |
---|---|
1385 #endif // AZTEC_C | 1385 #endif // AZTEC_C |
1386 | 1386 |
1387 if ((mydir = CurrentDir(mydir)) != 0) // make sure we stay in the same directory | 1387 if ((mydir = CurrentDir(mydir)) != 0) // make sure we stay in the same directory |
1388 UnLock(mydir); | 1388 UnLock(mydir); |
1389 if (tmode == TMODE_RAW) | 1389 if (tmode == TMODE_RAW) |
1390 { | |
1391 // The shell may have messed with the mode, always set it. | |
1392 cur_tmode = TMODE_UNKNOWN; | |
1390 settmode(TMODE_RAW); // set to raw mode | 1393 settmode(TMODE_RAW); // set to raw mode |
1394 } | |
1391 #ifdef FEAT_TITLE | 1395 #ifdef FEAT_TITLE |
1392 resettitle(); | 1396 resettitle(); |
1393 #endif | 1397 #endif |
1394 if (term_console) | 1398 if (term_console) |
1395 win_resize_on(); // window resize events activated | 1399 win_resize_on(); // window resize events activated |