Make nsgtk's gui_window_remove_caret actually remove the caret

svn path=/trunk/netsurf/; revision=2898
This commit is contained in:
Rob Kendrick 2006-08-28 20:31:21 +00:00
parent 170c992d2a
commit 82cba2801b
1 changed files with 6 additions and 2 deletions

View File

@ -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)