mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 05:28:33 +00:00
'pastetoggle': Revert support for multi-key value (#6724)
Reverts commit 337b6179df
Closes #6716 at the expense of not being able to use a
multi-key 'pastetoggle' manually.
Multi-key 'pastetoggle' can still be used when inserting the entire
option into the typebuffer at once (though the use here is
questionable).
Also remove those tests to do with waiting for the completion of
'pastetoggle' and mention in the documentation that 'pastetoggle'
doesn't wait for timeout.
This commit is contained in:

committed by
Justin M. Keyes

parent
43f40b8e1a
commit
033b1cb7d9
@@ -1908,7 +1908,7 @@ static int vgetorpeek(int advance)
|
||||
}
|
||||
|
||||
if ((mp == NULL || max_mlen >= mp_match_len)
|
||||
&& keylen != KEYLEN_PART_MAP && keylen != KEYLEN_PART_KEY) {
|
||||
&& keylen != KEYLEN_PART_MAP) {
|
||||
// No matching mapping found or found a non-matching mapping that
|
||||
// matches at least what the matching mapping matched
|
||||
keylen = 0;
|
||||
|
Reference in New Issue
Block a user