[evolution/wip/webkit-composer: 465/966] Force spellcheck when switch to plain text mode in composer
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit-composer: 465/966] Force spellcheck when switch to plain text mode in composer
- Date: Wed, 23 Apr 2014 10:32:31 +0000 (UTC)
commit 31f6e6512949e5e163d964d5d9044b181b01ff51
Author: Tomas Popela <tpopela redhat com>
Date: Fri Oct 11 14:43:24 2013 +0200
Force spellcheck when switch to plain text mode in composer
composer/e-composer-private.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/composer/e-composer-private.c b/composer/e-composer-private.c
index 89945ab..7c4514a 100644
--- a/composer/e-composer-private.c
+++ b/composer/e-composer-private.c
@@ -807,7 +807,12 @@ composer_move_caret (EMsgComposer *composer)
element = webkit_dom_document_get_element_by_id (document, "-x-evo-caret-position");
/* Caret position found => composer mode changed */
if (element) {
- e_editor_selection_restore_caret_position (e_editor_widget_get_selection (editor_widget));
+ e_editor_selection_restore_caret_position (editor_selection);
+ /* We want to force spellcheck just in case that we switched to plain
+ * text mode (when switching to html mode, the underlined words are
+ * preserved */
+ if (!e_editor_widget_get_html_mode (editor_widget))
+ e_editor_widget_force_spellcheck (editor_widget);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]