diff options
Diffstat (limited to 'desktop/local_history.c')
-rw-r--r-- | desktop/local_history.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/desktop/local_history.c b/desktop/local_history.c index 2a8871afe..ddebbbe58 100644 --- a/desktop/local_history.c +++ b/desktop/local_history.c @@ -33,6 +33,7 @@ #include "netsurf/plotters.h" #include "netsurf/keypress.h" +#include "desktop/cw_helper.h" #include "desktop/gui_internal.h" #include "desktop/system_colour.h" #include "desktop/browser_private.h" @@ -294,9 +295,9 @@ local_history_scroll_to_cursor(struct local_history_session *session) cursor.y1 = cursor.y0 + LOCAL_HISTORY_HEIGHT + LOCAL_HISTORY_BOTTOM_MARGIN / 2; - session->cw_t->scroll_visible(session->core_window_handle, &cursor); - - return NSERROR_OK; + return cw_helper_scroll_visible(session->cw_t, + session->core_window_handle, + &cursor); } /* exported interface documented in desktop/local_history.h */ |