mirror of
https://github.com/irssi/irssi.git
synced 2026-08-14 14:12:11 +02:00
/SCROLLBACK HOME/END/GOTO commands weren't working right.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@396 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
d0dcffab7b
commit
4faf4d1303
3 changed files with 61 additions and 50 deletions
|
|
@ -184,9 +184,6 @@ static int gui_window_update_bottom(GUI_WINDOW_REC *gui, int lines)
|
|||
return last_linecount;
|
||||
}
|
||||
|
||||
#define is_window_bottom(gui) \
|
||||
((gui)->ypos >= -1 && (gui)->ypos <= (gui)->parent->last_line-(gui)->parent->first_line)
|
||||
|
||||
void gui_window_newline(GUI_WINDOW_REC *gui, int visible)
|
||||
{
|
||||
/* FIXME: I'm pretty sure this could be done cleaner :) */
|
||||
|
|
@ -601,6 +598,17 @@ void gui_window_scroll(WINDOW_REC *window, int lines)
|
|||
signal_emit("gui page scrolled", 1, window);
|
||||
}
|
||||
|
||||
void gui_window_update_ypos(GUI_WINDOW_REC *gui)
|
||||
{
|
||||
GList *tmp;
|
||||
|
||||
g_return_if_fail(gui != NULL);
|
||||
|
||||
gui->ypos = -gui->subline-1;
|
||||
for (tmp = gui->startline; tmp != NULL; tmp = tmp->next)
|
||||
gui->ypos += gui_window_get_linecount(gui, tmp->data);
|
||||
}
|
||||
|
||||
void window_update_prompt(WINDOW_REC *window)
|
||||
{
|
||||
WI_ITEM_REC *item;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue