summaryrefslogtreecommitdiff
path: root/src/fe-text/gui-windows.h
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-06-30 19:45:28 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-06-30 19:45:28 +0000
commit4faf4d130322aab96c97c24480f9456ade645f78 (patch)
treecf98045fbbb918f1a47faf16c5c2e353dc3092e4 /src/fe-text/gui-windows.h
parentd0dcffab7b7241e31c856ba10549cd1bd008cb10 (diff)
downloadirssi-4faf4d130322aab96c97c24480f9456ade645f78.zip
/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
Diffstat (limited to 'src/fe-text/gui-windows.h')
-rw-r--r--src/fe-text/gui-windows.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fe-text/gui-windows.h b/src/fe-text/gui-windows.h
index b3088731..4eb532e7 100644
--- a/src/fe-text/gui-windows.h
+++ b/src/fe-text/gui-windows.h
@@ -99,8 +99,12 @@ void gui_window_redraw(WINDOW_REC *window);
void gui_window_resize(WINDOW_REC *window, int ychange, int xchange);
void gui_window_reparent(WINDOW_REC *window, MAIN_WINDOW_REC *parent);
+#define is_window_bottom(gui) \
+ ((gui)->ypos >= -1 && (gui)->ypos <= (gui)->parent->last_line-(gui)->parent->first_line)
+
void window_update_prompt(WINDOW_REC *window);
void gui_window_newline(GUI_WINDOW_REC *gui, int visible);
void gui_window_scroll(WINDOW_REC *window, int lines);
+void gui_window_update_ypos(GUI_WINDOW_REC *gui);
#endif