mirror of
https://github.com/neovim/neovim.git
synced 2026-02-08 12:57:22 +00:00
Merge PR #2164 'Small changes to ui_busy functions and testing'
This commit is contained in:
@@ -2364,7 +2364,7 @@ int get_keystroke(void)
|
||||
|
||||
mapped_ctrl_c = FALSE; /* mappings are not used here */
|
||||
for (;; ) {
|
||||
|
||||
ui_flush();
|
||||
/* Leave some room for check_termcode() to insert a key code into (max
|
||||
* 5 chars plus NUL). And fix_input_buffer() can triple the number of
|
||||
* bytes. */
|
||||
|
||||
@@ -155,16 +155,16 @@ void ui_busy_start(void)
|
||||
{
|
||||
if (!(busy++)) {
|
||||
UI_CALL(busy_start);
|
||||
ui_flush();
|
||||
}
|
||||
ui_flush();
|
||||
}
|
||||
|
||||
void ui_busy_stop(void)
|
||||
{
|
||||
if (!(--busy)) {
|
||||
UI_CALL(busy_stop);
|
||||
ui_flush();
|
||||
}
|
||||
ui_flush();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@ describe('system()', function()
|
||||
~ |
|
||||
~ |
|
||||
~ |
|
||||
^:call system("yes") |
|
||||
:call system("yes") |
|
||||
]])
|
||||
feed('<c-c>')
|
||||
screen:expect([[
|
||||
@@ -259,7 +259,7 @@ describe('systemlist()', function()
|
||||
~ |
|
||||
~ |
|
||||
~ |
|
||||
^:call systemlist("yes | xargs") |
|
||||
:call systemlist("yes | xargs") |
|
||||
]])
|
||||
feed('<c-c>')
|
||||
screen:expect([[
|
||||
|
||||
@@ -417,7 +417,7 @@ function Screen:_row_repr(row, attr_ids, attr_ignore)
|
||||
table.insert(rv, '{' .. attr_id .. ':')
|
||||
current_attr_id = attr_id
|
||||
end
|
||||
if self._rows[self._cursor.row] == row and self._cursor.col == i then
|
||||
if not self._busy and self._rows[self._cursor.row] == row and self._cursor.col == i then
|
||||
table.insert(rv, '^')
|
||||
end
|
||||
table.insert(rv, row[i].text)
|
||||
|
||||
Reference in New Issue
Block a user