mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00: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:
		| @@ -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"); | ||||
|  | ||||
|   /* | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Marco Hinz
					Marco Hinz