aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-12-28 08:48:03 +0800
committerGitHub <noreply@github.com>2023-12-28 08:48:03 +0800
commite0d998dbc8b8e7047e1cc2bb520aea4d0b34f726 (patch)
tree87a1c56985f6ace8f9e9c330ddd5712d54f89b29
parentb3940cf8a1b388a49a2076573a7702ca4a22d059 (diff)
downloadrneovim-e0d998dbc8b8e7047e1cc2bb520aea4d0b34f726.tar.gz
rneovim-e0d998dbc8b8e7047e1cc2bb520aea4d0b34f726.tar.bz2
rneovim-e0d998dbc8b8e7047e1cc2bb520aea4d0b34f726.zip
vim-patch:65672ae1189e (#26767)
runtime(doc): clarify behaviour of ]m and ]M motions In particular remove the sentence, that a missing '{' (for ]m) or '}' (for ]M) after the cursor is an error, since currently this is not treated as an error. fixes: vim/vim#13777 https://github.com/vim/vim/commit/65672ae1189e0638fb68856598b98a2b7ee2a0a8 Co-authored-by: Christian Brabandt <cb@256bit.org>
-rw-r--r--runtime/doc/motion.txt6
1 files changed, 2 insertions, 4 deletions
diff --git a/runtime/doc/motion.txt b/runtime/doc/motion.txt
index aa18e44225..b72dd8d39c 100644
--- a/runtime/doc/motion.txt
+++ b/runtime/doc/motion.txt
@@ -1292,14 +1292,12 @@ bring you back to the switch statement.
]m Go to [count] next start of a method (for Java or
similar structured language). When not before the
start of a method, jump to the start or end of the
- class. When no '{' is found after the cursor, this is
- an error. |exclusive| motion.
+ class. |exclusive| motion.
*]M*
]M Go to [count] next end of a method (for Java or
similar structured language). When not before the end
of a method, jump to the start or end of the class.
- When no '}' is found after the cursor, this is an
- error. |exclusive| motion.
+ |exclusive| motion.
*[m*
[m Go to [count] previous start of a method (for Java or
similar structured language). When not after the