From fab670c471c7eea28d43ebaeed14b3c886e2c6e5 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sun, 10 Oct 2021 17:47:45 +0300 Subject: commented out Editor::SetRepresentations() * This sets the default key representations on every SCI_SETDOCPOINTER which is very inefficient considering the way that SciTECO uses the Q-Register view. Furthermore it meant, we had to reset the representations to their SciTECO versions again after every SCI_SETDOCPOINTER. * This patch only does not cause problems because we initialize the representations anyway for every Scintilla view. This patch is not meant to be upstreamed! --- src/Editor.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index dc3cf6caf..699b98f7a 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -213,6 +213,7 @@ void Editor::Finalise() { } void Editor::SetRepresentations() { +#if 0 reprs.Clear(); // C0 control set @@ -257,6 +258,7 @@ void Editor::SetRepresentations() { } } } +#endif } void Editor::DropGraphics() noexcept { -- cgit v1.2.3