Commit 7f84a96e authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Compile on Windows.

parent d4ccc16f
......@@ -1830,7 +1830,7 @@ void FakeVimHandler::Private::handleExCommand(const QString &cmd0)
if (position != -1) {
m_tc.setPosition(position);
m_tc.movePosition(QTextCursor::NextCharacter,
QTextCursor::KeepAnchor, pattern.matchedLength());
KeepAnchor, pattern.matchedLength());
QString text = m_tc.selectedText();
if (text.endsWith(ParagraphSeparator)) {
text = replacement + "\n";
......@@ -2372,11 +2372,13 @@ void FakeVimHandler::Private::recordJump()
UNDO_DEBUG("jumps: " << m_jumpListUndo);
}
struct UndoBreaker : public QAbstractUndoItem
class UndoBreaker : public QAbstractUndoItem
{
public:
UndoBreaker(FakeVimHandler::Private *doc) : m_doc(doc) {}
void undo() { m_doc->m_needMoreUndo = true; }
void redo() { m_doc->m_needMoreUndo = true; }
private:
FakeVimHandler::Private *m_doc;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment