summaryrefslogtreecommitdiff
path: root/src/gui/curses/gui-curses-window.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2007-03-20 12:23:11 +0000
committerSebastien Helleu <flashcode@flashtux.org>2007-03-20 12:23:11 +0000
commit0b6a91837c70d8abf921cdb951e15722f893a4cf (patch)
tree4fce63bf58ccdddf15351dae4f6752de8e3735f2 /src/gui/curses/gui-curses-window.c
parentc988f0c4738fddefd48d75b1b9efef325f8b2188 (diff)
downloadweechat-0b6a91837c70d8abf921cdb951e15722f893a4cf.zip
Fixed bug with text search and previous/next highlight (sometimes search came back to end of buffer)
Diffstat (limited to 'src/gui/curses/gui-curses-window.c')
-rw-r--r--src/gui/curses/gui-curses-window.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/gui/curses/gui-curses-window.c b/src/gui/curses/gui-curses-window.c
index bdb8be4da..2e09a4fb0 100644
--- a/src/gui/curses/gui-curses-window.c
+++ b/src/gui/curses/gui-curses-window.c
@@ -533,6 +533,11 @@ gui_window_page_up (t_gui_window *window)
(-1) * (window->win_chat_height - 1) :
(-1) * ((window->win_chat_height - 1) * 2));
gui_chat_draw (window->buffer, 0);
+ if (!window->scroll)
+ {
+ window->start_line = NULL;
+ window->start_line_pos = 0;
+ }
gui_status_draw (window->buffer, 0);
}
}
@@ -569,6 +574,11 @@ gui_window_page_down (t_gui_window *window)
}
gui_chat_draw (window->buffer, 0);
+ if (!window->scroll)
+ {
+ window->start_line = NULL;
+ window->start_line_pos = 0;
+ }
gui_status_draw (window->buffer, 0);
}
}
@@ -591,6 +601,11 @@ gui_window_scroll_up (t_gui_window *window)
(-1) * cfg_look_scroll_amount :
(-1) * ( (window->win_chat_height - 1) + cfg_look_scroll_amount));
gui_chat_draw (window->buffer, 0);
+ if (!window->scroll)
+ {
+ window->start_line = NULL;
+ window->start_line_pos = 0;
+ }
gui_status_draw (window->buffer, 0);
}
}
@@ -628,6 +643,11 @@ gui_window_scroll_down (t_gui_window *window)
}
gui_chat_draw (window->buffer, 0);
+ if (!window->scroll)
+ {
+ window->start_line = NULL;
+ window->start_line_pos = 0;
+ }
gui_status_draw (window->buffer, 0);
}
}
@@ -647,6 +667,11 @@ gui_window_scroll_top (t_gui_window *window)
window->start_line = window->buffer->lines;
window->start_line_pos = 0;
gui_chat_draw (window->buffer, 0);
+ if (!window->scroll)
+ {
+ window->start_line = NULL;
+ window->start_line_pos = 0;
+ }
gui_status_draw (window->buffer, 0);
}
}
@@ -666,6 +691,11 @@ gui_window_scroll_bottom (t_gui_window *window)
window->start_line = NULL;
window->start_line_pos = 0;
gui_chat_draw (window->buffer, 0);
+ if (!window->scroll)
+ {
+ window->start_line = NULL;
+ window->start_line_pos = 0;
+ }
gui_status_draw (window->buffer, 0);
}
}