diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/interface-curses/interface.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/interface-curses/interface.c b/src/interface-curses/interface.c index 95e86c9..b1fa88b 100644 --- a/src/interface-curses/interface.c +++ b/src/interface-curses/interface.c @@ -1062,6 +1062,13 @@ void teco_interface_cmdline_update(const teco_cmdline_t *cmdline) { /* + * Especially important on PDCurses, which can crash + * in newpad() when run with --fake-cmdline. + */ + if (!teco_interface.cmdline_window) /* batch mode */ + return; + + /* * Replace entire pre-formatted command-line. * We don't know if it is similar to the last one, * so resizing makes no sense. |