vim-patch:8.1.0514: CTRL-W ^ does not work when alternate buffer has no name

Problem:    CTRL-W ^ does not work when alternate buffer has no name.
Solution:   Use another method to split and edit the alternate buffer. (Jason
            Franklin)
1bbb619483
This commit is contained in:
Jan Edmund Lazo
2019-09-24 22:53:20 -04:00
parent 8d0bc3c189
commit 17e96d96ba
5 changed files with 176 additions and 76 deletions

View File

@@ -4680,9 +4680,8 @@ static void nv_ctrlo(cmdarg_T *cap)
}
}
/*
* CTRL-^ command, short for ":e #"
*/
// CTRL-^ command, short for ":e #". Works even when the alternate buffer is
// not named.
static void nv_hat(cmdarg_T *cap)
{
if (!checkclearopq(cap->oap))