OSDN Git Service

fakevim: fix . after A and D in command mode
authorhjk <qtc-committer@nokia.com>
Thu, 11 Jun 2009 15:22:37 +0000 (17:22 +0200)
committerhjk <qtc-committer@nokia.com>
Thu, 11 Jun 2009 15:22:37 +0000 (17:22 +0200)
src/plugins/debugger/gdb/gdbengine.cpp
src/plugins/fakevim/fakevimhandler.cpp

index 48b5dca..27d44e6 100644 (file)
@@ -1433,6 +1433,7 @@ bool GdbEngine::startDebugger(const QSharedPointer<DebuggerStartParameters> &sp)
     postCommand(_("show version"), CB(handleShowVersion));
     //postCommand(_("-enable-timings");
     postCommand(_("set print static-members off")); // Seemingly doesn't work.
+    //postCommand(_("set debug infrun 1"));
     //postCommand(_("define hook-stop\n-thread-list-ids\n-stack-list-frames\nend"));
     //postCommand(_("define hook-stop\nprint 4\nend"));
     //postCommand(_("define hookpost-stop\nprint 5\nend"));
index f84802b..c88958f 100644 (file)
@@ -1116,6 +1116,7 @@ EventResult FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
     } else if (key == 'A') {
         enterInsertMode();
         moveToEndOfLine();
+        setDotCommand("A");
         m_lastInsertion.clear();
     } else if (key == control('a')) {
         // FIXME: eat it to prevent the global "select all" shortcut to trigger