summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/curses/gui-display.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/curses/gui-display.c b/src/gui/curses/gui-display.c
index 8fdd1b53f..b52fe4590 100644
--- a/src/gui/curses/gui-display.c
+++ b/src/gui/curses/gui-display.c
@@ -2508,8 +2508,8 @@ gui_switch_to_buffer (t_gui_window *window, t_gui_buffer *buffer)
if (!gui_ok)
return;
- if (gui_current_window->buffer->num_displayed > 0)
- gui_current_window->buffer->num_displayed--;
+ if (window->buffer->num_displayed > 0)
+ window->buffer->num_displayed--;
window->buffer = buffer;
window->win_nick_start = 0;