A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/neovim/neovim/commit/5b34c2ab73d62431f391d454e68a84332148d609 below:

do not block on press-enter prompts when no UI · neovim/neovim@5b34c2a · GitHub

@@ -333,6 +333,7 @@ describe('API', function()

333 333 334 334

describe('nvim_command_output', function()

335 335

it('does not induce hit-enter prompt', function()

336 +

nvim("ui_attach", 80, 20, {})

336 337

-- Induce a hit-enter prompt use nvim_input (non-blocking).

337 338

nvim('command', 'set cmdheight=1')

338 339

nvim('input', [[:echo "hi\nhi2"<CR>]])

@@ -1093,7 +1094,20 @@ describe('API', function()

1093 1094

eq({mode='n', blocking=false}, nvim("get_mode"))

1094 1095

end)

1095 1096 1097 +

it("during press-enter prompt without UI returns blocking=false", function()

1098 +

eq({mode='n', blocking=false}, nvim("get_mode"))

1099 +

command("echom 'msg1'")

1100 +

command("echom 'msg2'")

1101 +

command("echom 'msg3'")

1102 +

command("echom 'msg4'")

1103 +

command("echom 'msg5'")

1104 +

eq({mode='n', blocking=false}, nvim("get_mode"))

1105 +

nvim("input", ":messages<CR>")

1106 +

eq({mode='n', blocking=false}, nvim("get_mode"))

1107 +

end)

1108 + 1096 1109

it("during press-enter prompt returns blocking=true", function()

1110 +

nvim("ui_attach", 80, 20, {})

1097 1111

eq({mode='n', blocking=false}, nvim("get_mode"))

1098 1112

command("echom 'msg1'")

1099 1113

command("echom 'msg2'")

@@ -1117,6 +1131,7 @@ describe('API', function()

1117 1131 1118 1132

-- TODO: bug #6247#issuecomment-286403810

1119 1133

it("batched with input", function()

1134 +

nvim("ui_attach", 80, 20, {})

1120 1135

eq({mode='n', blocking=false}, nvim("get_mode"))

1121 1136

command("echom 'msg1'")

1122 1137

command("echom 'msg2'")


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4