editor: fix multiline comment syntax highlighting.

When autosave is disabled the multi-oline comment
syntax highlighting was not working. We can do this
without adding an API, but should aim to add an
identical behaviour method to elm_code with better
namespace that indicates syntax highlighting
refresh. Changing T6083 to a TODO.
This commit is contained in:
Alastair Poole 2018-09-06 10:45:37 +01:00
parent d9bfd0a3d9
commit 808572894e
1 changed files with 4 additions and 0 deletions

View File

@ -176,6 +176,10 @@ _changed_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUS
ecore_timer_reset(editor->save_timer);
else if (_edi_config->autosave)
editor->save_timer = ecore_timer_add(EDI_CONTENT_SAVE_TIMEOUT, _edi_editor_autosave_cb, editor);
// TODO: add method to elm_code to refresh syntax.
if (!_edi_config->autosave)
elm_code_widget_syntax_enabled_set(editor->entry, EINA_TRUE);
}
static char *