From 82cba2801b0a4d5530302960f60dc51485080d01 Mon Sep 17 00:00:00 2001 From: Rob Kendrick Date: Mon, 28 Aug 2006 20:31:21 +0000 Subject: Make nsgtk's gui_window_remove_caret actually remove the caret svn path=/trunk/netsurf/; revision=2898 --- gtk/gtk_window.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'gtk') diff --git a/gtk/gtk_window.c b/gtk/gtk_window.c index eee9d6c59..561becf49 100644 --- a/gtk/gtk_window.c +++ b/gtk/gtk_window.c @@ -1093,11 +1093,15 @@ void gui_window_place_caret(struct gui_window *g, int x, int y, int height) void gui_window_remove_caret(struct gui_window *g) { - if (g->careth == 0) + int oh = g->careth; + + if (oh == 0) return; + g->careth = 0; + gui_window_redraw(g, g->caretx, g->carety, - g->caretx, g->carety + g->careth); + g->caretx, g->carety + oh); } void gui_window_new_content(struct gui_window *g) -- cgit v1.2.3