mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
Source provider at start if &cb is set #3025
The main problem is that <c-c> is a default mapping but also sets got_int. Because of the former, normal_cmd() is kicked off which eventually leads to sourcing the clipboard provider. But due to the latter, do_source() throws an error, because got_int is set. This is a temporary workaround and sources the clipboard provider before main_loop(), if &clipboard is set. References #3023.
This commit is contained in:
parent
b4a5871809
commit
05bb841487
@ -521,6 +521,11 @@ int main(int argc, char **argv)
|
||||
if (restart_edit != 0)
|
||||
stuffcharReadbuff(K_NOP);
|
||||
|
||||
// WORKAROUND(mhi): #3023
|
||||
if (cb_flags & CB_UNNAMEDMASK) {
|
||||
(void)eval_has_provider("clipboard");
|
||||
}
|
||||
|
||||
TIME_MSG("before starting main loop");
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user