mirror of
https://github.com/tmux/tmux.git
synced 2025-09-06 19:38:21 +00:00
Turn off scrollbar when pane is in alternate screen, from Michael Grant,
GitHub issue 4231.
This commit is contained in:
7
layout.c
7
layout.c
@@ -292,7 +292,7 @@ layout_fix_panes(struct window *w, struct window_pane *skip)
|
||||
struct window_pane *wp;
|
||||
struct layout_cell *lc;
|
||||
int status, scrollbars, sb_pos;
|
||||
u_int sx, sy, mode;
|
||||
u_int sx, sy;
|
||||
|
||||
status = options_get_number(w->options, "pane-border-status");
|
||||
scrollbars = options_get_number(w->options, "pane-scrollbars");
|
||||
@@ -313,10 +313,7 @@ layout_fix_panes(struct window *w, struct window_pane *skip)
|
||||
sy--;
|
||||
}
|
||||
|
||||
mode = window_pane_mode(wp);
|
||||
if (scrollbars == PANE_SCROLLBARS_ALWAYS ||
|
||||
(scrollbars == PANE_SCROLLBARS_MODAL &&
|
||||
mode != WINDOW_PANE_NO_MODE)) {
|
||||
if (window_pane_show_scrollbar(wp, scrollbars)) {
|
||||
if (sb_pos == PANE_SCROLLBARS_LEFT) {
|
||||
sx = sx - PANE_SCROLLBARS_WIDTH;
|
||||
wp->xoff = wp->xoff + PANE_SCROLLBARS_WIDTH;
|
||||
|
Reference in New Issue
Block a user