mirror of
https://github.com/neovim/neovim.git
synced 2025-11-29 13:40:38 +00:00
Merge pull request #11906 from bfredl/moreblock
consider "-- more --" state to be blocking
This commit is contained in:
@@ -393,7 +393,7 @@ static InbufPollResult inbuf_poll(int ms, MultiQueue *events)
|
|||||||
prof_inchar_enter();
|
prof_inchar_enter();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((ms == - 1 || ms > 0) && events == NULL && !input_eof) {
|
if ((ms == - 1 || ms > 0) && events != main_loop.events && !input_eof) {
|
||||||
// The pending input provoked a blocking wait. Do special events now. #6247
|
// The pending input provoked a blocking wait. Do special events now. #6247
|
||||||
blocking = true;
|
blocking = true;
|
||||||
multiqueue_process_events(ch_before_blocking_events);
|
multiqueue_process_events(ch_before_blocking_events);
|
||||||
|
|||||||
@@ -972,6 +972,12 @@ describe('API', function()
|
|||||||
nvim("input", "gu")
|
nvim("input", "gu")
|
||||||
eq({mode='no', blocking=false}, nvim("get_mode"))
|
eq({mode='no', blocking=false}, nvim("get_mode"))
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
it("at '-- More --' prompt returns blocking=true #11899", function()
|
||||||
|
command('set more')
|
||||||
|
feed(':digraphs<cr>')
|
||||||
|
eq({mode='rm', blocking=true}, nvim("get_mode"))
|
||||||
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
describe('RPC (K_EVENT) #6166', function()
|
describe('RPC (K_EVENT) #6166', function()
|
||||||
|
|||||||
Reference in New Issue
Block a user