mirror of
https://github.com/neovim/neovim.git
synced 2025-09-24 20:18:32 +00:00
tui: Don't use 'pastetoggle' for automatic pasting
Add a new special key that can be used by UIs to toggle the 'paste' option and use it in the TUI instead of the user's 'pastetoggle' value. Close #2843 #2092
This commit is contained in:
@@ -302,7 +302,7 @@ getcmdline (
|
||||
input_enable_events();
|
||||
do {
|
||||
c = safe_vgetc();
|
||||
} while (c == K_IGNORE);
|
||||
} while (c == K_IGNORE || c == K_PASTE);
|
||||
input_disable_events();
|
||||
|
||||
if (c == K_EVENT) {
|
||||
|
Reference in New Issue
Block a user