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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user