Mercurial > vim
comparison src/window.c @ 15937:c38fb03a6055 v8.1.0974
patch 8.1.0974: cannot switch from terminal window to previous tabpage
commit https://github.com/vim/vim/commit/882d02eeb571a13a502fe82a04c9eaffa630c294
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Feb 22 17:56:43 2019 +0100
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 22 Feb 2019 18:00:05 +0100 |
parents | b2423b31266f |
children | 7fbdceabad64 |
comparison
equal
deleted
inserted
replaced
15936:8efaa4a54d49 | 15937:c38fb03a6055 |
---|---|
85 int type = FIND_DEFINE; | 85 int type = FIND_DEFINE; |
86 int len; | 86 int len; |
87 #endif | 87 #endif |
88 char_u cbuf[40]; | 88 char_u cbuf[40]; |
89 | 89 |
90 if (Prenum == 0) | 90 Prenum1 = Prenum == 0 ? 1 : Prenum; |
91 Prenum1 = 1; | |
92 else | |
93 Prenum1 = Prenum; | |
94 | 91 |
95 #ifdef FEAT_CMDWIN | 92 #ifdef FEAT_CMDWIN |
96 # define CHECK_CMDWIN \ | 93 # define CHECK_CMDWIN \ |
97 do { \ | 94 do { \ |
98 if (cmdwin_type != 0) \ | 95 if (cmdwin_type != 0) \ |
584 nchar = xchar; | 581 nchar = xchar; |
585 goto wingotofile; | 582 goto wingotofile; |
586 #endif | 583 #endif |
587 case 't': // CTRL-W gt: go to next tab page | 584 case 't': // CTRL-W gt: go to next tab page |
588 goto_tabpage((int)Prenum); | 585 goto_tabpage((int)Prenum); |
586 break; | |
587 | |
588 case 'T': // CTRL-W gT: go to previous tab page | |
589 goto_tabpage(-(int)Prenum1); | |
589 break; | 590 break; |
590 | 591 |
591 default: | 592 default: |
592 beep_flush(); | 593 beep_flush(); |
593 break; | 594 break; |