summaryrefslogtreecommitdiffstats
path: root/src/edit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/edit.c')
-rw-r--r--src/edit.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/edit.c b/src/edit.c
index 3beb431b44..e117bedf4f 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -8822,7 +8822,11 @@ ins_pageup()
if (mod_mask & MOD_MASK_CTRL)
{
/* <C-PageUp>: tab page back */
- goto_tabpage(-1);
+ if (first_tabpage->tp_next != NULL)
+ {
+ start_arrow(&curwin->w_cursor);
+ goto_tabpage(-1);
+ }
return;
}
#endif
@@ -8881,7 +8885,11 @@ ins_pagedown()
if (mod_mask & MOD_MASK_CTRL)
{
/* <C-PageDown>: tab page forward */
- goto_tabpage(0);
+ if (first_tabpage->tp_next != NULL)
+ {
+ start_arrow(&curwin->w_cursor);
+ goto_tabpage(0);
+ }
return;
}
#endif