To: vim_dev@googlegroups.com Subject: Patch 9.0.1051 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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-@\" + silent! execute "normal! \]" + + let wincount = winnr('$') + help 'mod' + + call assert_equal(wincount, winnr('$')) + call assert_equal(expand(""), "'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 -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///