Browse Source

eliminate the compiler warning on Linux

Le Tan 8 years ago
parent
commit
844b644972
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/vmdeditoperations.cpp

+ 1 - 1
src/vmdeditoperations.cpp

@@ -657,7 +657,7 @@ bool VMdEditOperations::handleKeyPressVim(QKeyEvent *p_event)
     case Qt::Key_L:
     {
         if (modifiers == Qt::NoModifier) {
-            QTextCursor::MoveOperation op;
+            QTextCursor::MoveOperation op = QTextCursor::Left;
             switch (p_event->key()) {
             case Qt::Key_H:
                 op = QTextCursor::Left;