mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 14:38:32 +00:00
tui: flush -V3 ('verbose' >= 3) info ASAP
This commit is contained in:
@@ -1073,9 +1073,12 @@ static void show_termcap_event(void **argv)
|
|||||||
if (!ut) {
|
if (!ut) {
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
|
verbose_enter();
|
||||||
// XXX: (future) if unibi_term is modified (e.g. after a terminal
|
// XXX: (future) if unibi_term is modified (e.g. after a terminal
|
||||||
// query-response) this is a race condition.
|
// query-response) this is a race condition.
|
||||||
terminfo_info_msg(ut);
|
terminfo_info_msg(ut);
|
||||||
|
verbose_leave();
|
||||||
|
verbose_stop(); // flush now
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef UNIX
|
#ifdef UNIX
|
||||||
|
@@ -721,9 +721,6 @@ describe("tui", function()
|
|||||||
{3:-- TERMINAL --} |
|
{3:-- TERMINAL --} |
|
||||||
]])
|
]])
|
||||||
|
|
||||||
-- Vim flushes the log file on exit.
|
|
||||||
feed_data('\33:q\n')
|
|
||||||
|
|
||||||
retry(nil, 3000, function() -- Wait for log file to be flushed.
|
retry(nil, 3000, function() -- Wait for log file to be flushed.
|
||||||
local log = read_file('Xtest_tui_verbose_log') or ''
|
local log = read_file('Xtest_tui_verbose_log') or ''
|
||||||
eq('--- Terminal info --- {{{\n', string.match(log, '--- Terminal.-\n'))
|
eq('--- Terminal info --- {{{\n', string.match(log, '--- Terminal.-\n'))
|
||||||
|
Reference in New Issue
Block a user