1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-26 04:46:37 +02:00

Disable loop on commands in history when reaching oldest command

This commit is contained in:
Sebastien Helleu
2009-05-09 16:39:50 +02:00
parent 74f5fe7bc5
commit 79ea9b54be
+2
View File
@@ -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)