Mercurial > vim
comparison src/window.c @ 31437:ede2bd5f3426 v9.0.1051
patch 9.0.1051: after a failed CTRL-W ] next command splits window
Commit: https://github.com/vim/vim/commit/cb94c910706fdd575cc25797d7858e084f1e3524
Author: Rob Pilling <robpilling@gmail.com>
Date: Tue Dec 13 12:26:09 2022 +0000
patch 9.0.1051: after a failed CTRL-W ] next command splits window
Problem: After a failed CTRL-W ] next command splits window.
Solution: Reset postponed_split. (Rob Pilling, closes https://github.com/vim/vim/issues/11698)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 13 Dec 2022 13:30:04 +0100 |
parents | 992bfd3aee3f |
children | 1009c33499e7 |
comparison
equal
deleted
inserted
replaced
31436:8e20602d3d90 | 31437:ede2bd5f3426 |
---|---|
557 #endif | 557 #endif |
558 | 558 |
559 // Execute the command right here, required when "wincmd ]" | 559 // Execute the command right here, required when "wincmd ]" |
560 // was used in a function. | 560 // was used in a function. |
561 do_nv_ident(Ctrl_RSB, NUL); | 561 do_nv_ident(Ctrl_RSB, NUL); |
562 postponed_split = 0; | |
562 break; | 563 break; |
563 | 564 |
564 // edit file name under cursor in a new window | 565 // edit file name under cursor in a new window |
565 case 'f': | 566 case 'f': |
566 case 'F': | 567 case 'F': |
672 postponed_split = -1; | 673 postponed_split = -1; |
673 | 674 |
674 // Execute the command right here, required when | 675 // Execute the command right here, required when |
675 // "wincmd g}" was used in a function. | 676 // "wincmd g}" was used in a function. |
676 do_nv_ident('g', xchar); | 677 do_nv_ident('g', xchar); |
678 postponed_split = 0; | |
677 break; | 679 break; |
678 | 680 |
679 case 'f': // CTRL-W gf: "gf" in a new tab page | 681 case 'f': // CTRL-W gf: "gf" in a new tab page |
680 case 'F': // CTRL-W gF: "gF" in a new tab page | 682 case 'F': // CTRL-W gF: "gF" in a new tab page |
681 cmdmod.cmod_tab = tabpage_index(curtab) + 1; | 683 cmdmod.cmod_tab = tabpage_index(curtab) + 1; |