Skip to content

Commit 65672ae

Browse files
committed
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: #13777 Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent 00b4700 commit 65672ae

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

runtime/doc/motion.txt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*motion.txt* For Vim version 9.0. Last change: 2023 Sep 28
1+
*motion.txt* For Vim version 9.0. Last change: 2023 Dec 27
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1310,14 +1310,12 @@ bring you back to the switch statement.
13101310
]m Go to [count] next start of a method (for Java or
13111311
similar structured language). When not before the
13121312
start of a method, jump to the start or end of the
1313-
class. When no '{' is found after the cursor, this is
1314-
an error. |exclusive| motion.
1313+
class. |exclusive| motion.
13151314
*]M*
13161315
]M Go to [count] next end of a method (for Java or
13171316
similar structured language). When not before the end
13181317
of a method, jump to the start or end of the class.
1319-
When no '}' is found after the cursor, this is an
1320-
error. |exclusive| motion.
1318+
|exclusive| motion.
13211319
*[m*
13221320
[m Go to [count] previous start of a method (for Java or
13231321
similar structured language). When not after the

0 commit comments

Comments
 (0)