aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/parser.cpp
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2014-11-16 23:29:34 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2014-11-16 23:34:25 +0100
commit52db2f4e20d7c544d3040af1f359dd3365ca204b (patch)
tree5f1d9ae0e9673215a2cb99965943e4ed93e50850 /src/parser.cpp
parent38fcf6d15cdf09591e7d7a142ad724164875e433 (diff)
downloadsciteco-52db2f4e20d7c544d3040af1f359dd3365ca204b.tar.gz
cleaned up Scintilla document "updating"
* allowed me to remove some obscure global functions and methods like QRegister::update_string(). * Document updating is concentrated in qregisters.cpp now * also fixes some bugs introduced earlier, like undo tokens being generated for non-undo registers (resulting in segfaults on rubout)
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index a510ab5..575fc78 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -995,10 +995,7 @@ StateStart::custom(gchar chr)
throw Error("Command-line editing only possible in "
"interactive mode");
- if (ring.current)
- ring.undo_edit();
- else /* QRegisters::current != NULL */
- QRegisters::undo_edit();
+ current_doc_undo_edit();
QRegisters::globals.edit("\x1B");
interface.ssm(SCI_BEGINUNDOACTION);