1
0
forked from aniani/vim

patch 8.1.0974: cannot switch from terminal window to previous tabpage

Problem:    Cannot switch from terminal window to previous tabpage.
Solution:   Make CTRL-W gT move to previous tabpage.
This commit is contained in:
Bram Moolenaar
2019-02-22 17:56:43 +01:00
parent cd62512c55
commit 882d02eeb5
4 changed files with 25 additions and 10 deletions

View File

@@ -87,10 +87,7 @@ do_window(
#endif
char_u cbuf[40];
if (Prenum == 0)
Prenum1 = 1;
else
Prenum1 = Prenum;
Prenum1 = Prenum == 0 ? 1 : Prenum;
#ifdef FEAT_CMDWIN
# define CHECK_CMDWIN \
@@ -588,6 +585,10 @@ wingotofile:
goto_tabpage((int)Prenum);
break;
case 'T': // CTRL-W gT: go to previous tab page
goto_tabpage(-(int)Prenum1);
break;
default:
beep_flush();
break;