cvs server: Diffing .
Index: htmlview.c
===================================================================
RCS file: /cvs/gnome/gtkhtml2/libgtkhtml/view/htmlview.c,v
retrieving revision 1.174
diff -u -p -r1.174 htmlview.c
--- htmlview.c	8 Jun 2004 10:49:36 -0000	1.174
+++ htmlview.c	10 Jun 2004 10:02:03 -0000
@@ -1396,9 +1396,6 @@ move_cursor (HtmlView *view, HtmlBox *ne
 	} else {
 		HtmlBoxText *text;
 
-		html_view_set_cursor_position (view, offset);
-		html_view_set_selection_bound (view, offset);
-
 		if (new_cursor_box == NULL) {
 			text = html_view_get_box_text_for_offset (view, &offset, html_view_get_cursor_end_of_line (view) != 0);
 			new_cursor_box = HTML_BOX (text);
@@ -1408,7 +1405,6 @@ move_cursor (HtmlView *view, HtmlBox *ne
 
 			element = DOM_ELEMENT (new_cursor_box->parent->dom_node);
 			if (dom_element_is_focusable (element)) {
-			
 				if (element != view->document->focus_element) {
                 			html_document_update_focus_element (view->document, element);
                 			html_view_focus_element (view);
@@ -1418,6 +1414,9 @@ move_cursor (HtmlView *view, HtmlBox *ne
 				html_view_focus_element (view);
 			}
 		}
+		html_view_set_cursor_position (view, offset);
+		html_view_set_selection_bound (view, offset);
+
 	}
 
 }
