aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/getchar.c
diff options
context:
space:
mode:
authorMatthew Malcomson <hardenedapple@gmail.com>2017-05-31 12:20:06 +0100
committerJustin M. Keyes <justinkz@gmail.com>2017-05-31 13:20:06 +0200
commit033b1cb7d9837699aba14ca1c0bda0058edc79fd (patch)
tree69a0dcfec36edeb2d6bab3cf97f022e64a21a518 /src/nvim/getchar.c
parent43f40b8e1acafa55e1c8df7c08c91a042f834f97 (diff)
downloadrneovim-033b1cb7d9837699aba14ca1c0bda0058edc79fd.tar.gz
rneovim-033b1cb7d9837699aba14ca1c0bda0058edc79fd.tar.bz2
rneovim-033b1cb7d9837699aba14ca1c0bda0058edc79fd.zip
'pastetoggle': Revert support for multi-key value (#6724)
Reverts commit 337b6179df852350b52409fd3806e4b47ab2875b 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.
Diffstat (limited to 'src/nvim/getchar.c')
-rw-r--r--src/nvim/getchar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c
index 382caa8548..4e42042959 100644
--- a/src/nvim/getchar.c
+++ b/src/nvim/getchar.c
@@ -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;