forked from enlightenment/edi
highlighting: clear errors that no longer apply
Also refresh more regularly now it's faster
This commit is contained in:
parent
4f8ece09cf
commit
ace8350ac2
|
@ -26,7 +26,7 @@ extern int _edi_log_dom;
|
|||
#endif
|
||||
#define DBG(...) EINA_LOG_DOM_DBG(_edi_log_dom, __VA_ARGS__)
|
||||
|
||||
#define EDI_CONTENT_SAVE_TIMEOUT 5
|
||||
#define EDI_CONTENT_SAVE_TIMEOUT 2
|
||||
|
||||
Evas_Object *edi_open(const char *path);
|
||||
|
||||
|
|
|
@ -462,9 +462,14 @@ _clang_show_highlighting(Edi_Editor *editor)
|
|||
static void
|
||||
_clang_load_errors(const char *path EINA_UNUSED, Edi_Editor *editor)
|
||||
{
|
||||
Elm_Code *code;
|
||||
unsigned n = clang_getNumDiagnostics(editor->tx_unit);
|
||||
unsigned i = 0;
|
||||
|
||||
eo_do(editor->entry, code = elm_code_widget_code_get());
|
||||
for (i = 1; i <= elm_code_file_lines_get(code->file); i++)
|
||||
_edi_line_status_set(editor, i, ELM_CODE_STATUS_TYPE_DEFAULT, NULL);
|
||||
|
||||
for(i = 0, n = clang_getNumDiagnostics(editor->tx_unit); i != n; ++i)
|
||||
{
|
||||
CXDiagnostic diag = clang_getDiagnostic(editor->tx_unit, i);
|
||||
|
|
Loading…
Reference in New Issue