summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Popela <tpopela@redhat.com>2016-02-22 10:11:50 +0100
committerTomas Popela <tpopela@redhat.com>2016-02-22 10:11:50 +0100
commit76af63a2c1ed1185accd9aa6beecfa5e9dfe2c64 (patch)
treebd95e396963b1828cdfccbbb8ade3aa6ae0f02d8
parentf73437bad293991f53462de1a90f3889aacd16e0 (diff)
downloadevolution-76af63a2c1ed1185accd9aa6beecfa5e9dfe2c64.tar.gz
Bug 762429 - List item is removed when the Return is pressed on its end
Regression after commit 6c09c26.
-rw-r--r--e-util/e-html-editor-view.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index 578a66cdf1..575523c9ab 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -5435,8 +5435,6 @@ selection_is_in_empty_list_item (WebKitDOMNode *selection_start_marker)
gchar *text;
WebKitDOMNode *sibling;
- sibling = webkit_dom_node_get_previous_sibling (WEBKIT_DOM_NODE (selection_start_marker));
-
/* Selection needs to be collapsed. */
sibling = webkit_dom_node_get_next_sibling (WEBKIT_DOM_NODE (selection_start_marker));
if (!e_html_editor_node_is_selection_position_node (sibling))
@@ -5450,8 +5448,7 @@ selection_is_in_empty_list_item (WebKitDOMNode *selection_start_marker)
if (sibling && webkit_dom_node_get_next_sibling (sibling))
return FALSE;
- if (!sibling)
- return TRUE;
+ sibling = webkit_dom_node_get_previous_sibling (WEBKIT_DOM_NODE (selection_start_marker));
/* Only text node with the zero width space character is allowed. */
if (!WEBKIT_DOM_IS_TEXT (sibling))