aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp
index a713964..5697063 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -53,6 +53,7 @@ namespace SciTECO {
* GCC init_priority() attribute
*/
InterfaceCurrent interface;
+ViewCurrent QRegisters::view;
/*
* Scintilla will be initialized after these
@@ -288,10 +289,9 @@ main(int argc, char **argv)
/*
* QRegister view must be initialized only now
- * (after Curses initialization)
+ * (e.g. after Curses/GTK initialization).
*/
- QRegisters::view = new ViewCurrent();
- // FIXME: view should be deallocated */
+ QRegisters::view.initialize();
/* search string and status register */
QRegisters::globals.insert("_");