1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-25 12:36:11 +03:00

Force redraw window after adding/removing highlighters

This commit is contained in:
Maxime Coste 2015-06-25 19:12:13 +01:00
parent d207d13b68
commit cf33a062df

View File

@ -595,6 +595,9 @@ const CommandDesc add_highlighter_cmd = {
if (it == registry.end())
throw runtime_error(format("No such highlighter factory '{}'", name));
group.add_child(it->second.factory(highlighter_params));
if (context.has_window())
context.window().force_redraw();
}
};
@ -615,6 +618,9 @@ const CommandDesc rm_highlighter_cmd = {
: context.window().highlighters();
group.remove_child({sep_it.base(), path.end()});
if (context.has_window())
context.window().force_redraw();
}
};