From 52db2f4e20d7c544d3040af1f359dd3365ca204b Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sun, 16 Nov 2014 23:29:34 +0100 Subject: 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) --- src/ring.h | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/ring.h') diff --git a/src/ring.h b/src/ring.h index 00284cb..35424dc 100644 --- a/src/ring.h +++ b/src/ring.h @@ -241,13 +241,12 @@ namespace States { extern StateSaveFile savefile; } -/* FIXME: clean up current_doc_update() usage */ -static inline void -current_doc_update(void) -{ - if (QRegisters::current) - QRegisters::current->update_string(); -} +/* + * Helper functions applying to any current + * document (whether a buffer or QRegister). + * There's currently no better place to put them. + */ +void current_doc_undo_edit(void); static inline bool current_doc_must_undo(void) -- cgit v1.2.3