summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorRob Kendrick <rjek@netsurf-browser.org>2006-08-28 20:31:21 +0000
committerRob Kendrick <rjek@netsurf-browser.org>2006-08-28 20:31:21 +0000
commit82cba2801b0a4d5530302960f60dc51485080d01 (patch)
treec0f8827f803163c5dc48f9dad7487a7ac8a1bc37 /gtk
parent170c992d2a1e3c02169f67e40b1598873b1c7f25 (diff)
downloadnetsurf-82cba2801b0a4d5530302960f60dc51485080d01.tar.gz
netsurf-82cba2801b0a4d5530302960f60dc51485080d01.tar.bz2
Make nsgtk's gui_window_remove_caret actually remove the caret
svn path=/trunk/netsurf/; revision=2898
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtk_window.c8
1 files changed, 6 insertions, 2 deletions
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)