diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-11-10 21:23:36 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-11-10 21:23:36 +0100 |
commit | 523947d30c5fb2e1a804023dcf7f1aa70a9a6932 (patch) | |
tree | f2d00d26b8f442df3ca52f7fc8342342e576057f /cmdline.cpp | |
parent | 9260afbf9f178bc67728f63222fa1279b1d98b94 (diff) | |
download | sciteco-523947d30c5fb2e1a804023dcf7f1aa70a9a6932.tar.gz |
use namespace "States" instead of "states" structure
has several advantages
* better to read
* namespace can be "extended" from everywhere allowing the declaration of states in the files that implement them
* include file mess could be cleaned up a bit
Diffstat (limited to 'cmdline.cpp')
-rw-r--r-- | cmdline.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmdline.cpp b/cmdline.cpp index ea8894e..171b2e3 100644 --- a/cmdline.cpp +++ b/cmdline.cpp @@ -7,6 +7,7 @@ #include "sciteco.h" #include "parser.h" +#include "qbuffers.h" #include "goto.h" #include "undo.h" @@ -99,7 +100,7 @@ process_edit_cmd(gchar key) } case '\t': - if (current_state == &states.file) { + if (States::current == &States::file) { gchar *new_chars = filename_complete(strings[0], escape_char); if (new_chars) g_stpcpy(insert, new_chars); |