runtime(doc): clarify behaviour of ]m and ]M motions

Commit: 
https://github.com/vim/vim/commit/65672ae1189e0638fb68856598b98a2b7ee2a0a8
Author: Christian Brabandt <[email protected]>
Date:   Wed Dec 27 18:53:35 2023 +0100

    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 <[email protected]>

diff --git a/runtime/doc/motion.txt b/runtime/doc/motion.txt
index 403ef4f30..7a67789b7 100644
--- a/runtime/doc/motion.txt
+++ b/runtime/doc/motion.txt
@@ -1,4 +1,4 @@
-*motion.txt*    For Vim version 9.0.  Last change: 2023 Sep 28
+*motion.txt*    For Vim version 9.0.  Last change: 2023 Dec 27
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -1310,14 +1310,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

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1rIYCO-00GoBH-Mp%40256bit.org.

Raspunde prin e-mail lui