aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2015-02-19 15:52:43 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2015-02-19 15:52:43 +0100
commit4624eebd7838ef948b9a17a2f29005d0e4b1d8e4 (patch)
tree7b3830aca844e02cbea4273dcb96aaf7c885e81f
parentc7b2da8c041fec7637204620b0970c2c91d76d19 (diff)
downloadsciteco-4624eebd7838ef948b9a17a2f29005d0e4b1d8e4.tar.gz
fixup: work around Scintilla drawing bug also when undoing Q-Reg edit
-rw-r--r--src/document.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/document.cpp b/src/document.cpp
index 129914d..ded7e0c 100644
--- a/src/document.cpp
+++ b/src/document.cpp
@@ -68,12 +68,20 @@ Document::undo_edit(ViewCurrent &view)
{
maybe_create_document();
+ /*
+ * FIXME: see above in Document::edit()
+ */
+ view.undo_ssm(SCI_SETLAYOUTCACHE,
+ view.ssm(SCI_GETLAYOUTCACHE));
+
view.undo_set_representations();
view.undo_ssm(SCI_SETSEL, anchor, (sptr_t)dot);
view.undo_ssm(SCI_SETXOFFSET, xoffset);
view.undo_ssm(SCI_SETFIRSTVISIBLELINE, first_line);
view.undo_ssm(SCI_SETDOCPOINTER, 0, (sptr_t)doc);
+
+ view.undo_ssm(SCI_SETLAYOUTCACHE, SC_CACHE_NONE);
}
void