summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/gui-input.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/gui-input.c b/src/gui/gui-input.c
index 2ef6eff65..48b4ea58d 100644
--- a/src/gui/gui-input.c
+++ b/src/gui/gui-input.c
@@ -899,6 +899,8 @@ gui_input_history_previous ()
{
if (gui_current_window->buffer->ptr_history)
{
+ if (!gui_current_window->buffer->ptr_history->next_history)
+ return;
gui_current_window->buffer->ptr_history =
gui_current_window->buffer->ptr_history->next_history;
if (!gui_current_window->buffer->ptr_history)