Patch 9.0.1051
Problem:    After a failed CTRL-W ] next command splits window.
Solution:   Reset postponed_split. (Rob Pilling, closes #11698)
Files:      src/window.c, src/testdir/test_window_cmd.vim


*** ../vim-9.0.1050/src/window.c        2022-12-07 09:17:56.520551971 +0000
--- src/window.c        2022-12-13 12:23:06.667791505 +0000
***************
*** 559,564 ****
--- 559,565 ----
                // Execute the command right here, required when "wincmd ]"
                // was used in a function.
                do_nv_ident(Ctrl_RSB, NUL);
+               postponed_split = 0;
                break;
  
  // edit file name under cursor in a new window
***************
*** 674,679 ****
--- 675,681 ----
                        // Execute the command right here, required when
                        // "wincmd g}" was used in a function.
                        do_nv_ident('g', xchar);
+                       postponed_split = 0;
                        break;
  
                    case 'f':       // CTRL-W gf: "gf" in a new tab page
*** ../vim-9.0.1050/src/testdir/test_window_cmd.vim     2022-12-05 
13:50:49.722052362 +0000
--- src/testdir/test_window_cmd.vim     2022-12-13 12:20:52.499799732 +0000
***************
*** 1911,1914 ****
--- 1911,1927 ----
    call VerifyScreenDump(buf, 'Test_splitkeep_status_1', {})
  endfunction
  
+ function Test_new_help_window_on_error()
+   help change.txt
+   execute "normal! /CTRL-@\<CR>"
+   silent! execute "normal! \<C-W>]"
+ 
+   let wincount = winnr('$')
+   help 'mod'
+ 
+   call assert_equal(wincount, winnr('$'))
+   call assert_equal(expand("<cword>"), "'mod'")
+ endfunction
+ 
+ 
  " vim: shiftwidth=2 sts=2 expandtab
*** ../vim-9.0.1050/src/version.c       2022-12-12 18:56:27.881463277 +0000
--- src/version.c       2022-12-12 20:52:29.672848708 +0000
***************
*** 697,698 ****
--- 697,700 ----
  {   /* Add new patch number below this line */
+ /**/
+     1051,
  /**/

-- 
DINGO: Wicked wicked Zoot ... she is a bad person and she must pay the
       penalty.  And here in Castle Anthrax, we have but one punishment
       ... you must tie her down on a bed ... and spank her.  Come!
GIRLS: A spanking!  A spanking!
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
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/20221213122759.DBD3A1C0E51%40moolenaar.net.

Raspunde prin e-mail lui