forked from qt-creator/qt-creator
fakevim: compile fix
This commit is contained in:
@@ -105,6 +105,7 @@ namespace Internal {
|
|||||||
#define Right QTextCursor::Right
|
#define Right QTextCursor::Right
|
||||||
#define Left QTextCursor::Left
|
#define Left QTextCursor::Left
|
||||||
#define EndOfDocument QTextCursor::End
|
#define EndOfDocument QTextCursor::End
|
||||||
|
#define StartOfDocument QTextCursor::Start
|
||||||
|
|
||||||
#define EDITOR(s) (m_textedit ? m_textedit->s : m_plaintextedit->s)
|
#define EDITOR(s) (m_textedit ? m_textedit->s : m_plaintextedit->s)
|
||||||
|
|
||||||
@@ -274,8 +275,6 @@ public:
|
|||||||
void moveToWordBoundary(bool simple, bool forward);
|
void moveToWordBoundary(bool simple, bool forward);
|
||||||
|
|
||||||
// to reduce line noise
|
// to reduce line noise
|
||||||
typedef QTextCursor::MoveOperation MoveOperation;
|
|
||||||
typedef QTextCursor::MoveMode MoveMode;
|
|
||||||
void moveToEndOfDocument() { m_tc.movePosition(EndOfDocument, MoveAnchor); }
|
void moveToEndOfDocument() { m_tc.movePosition(EndOfDocument, MoveAnchor); }
|
||||||
void moveToStartOfLine() { m_tc.movePosition(StartOfLine, MoveAnchor); }
|
void moveToStartOfLine() { m_tc.movePosition(StartOfLine, MoveAnchor); }
|
||||||
void moveToEndOfLine();
|
void moveToEndOfLine();
|
||||||
@@ -1969,7 +1968,7 @@ void FakeVimHandler::Private::highlightMatches(const QString &needle0)
|
|||||||
|
|
||||||
if (!needle0.isEmpty()) {
|
if (!needle0.isEmpty()) {
|
||||||
QTextCursor tc = m_tc;
|
QTextCursor tc = m_tc;
|
||||||
tc.movePosition(QTextCursor::Start, MoveAnchor);
|
tc.movePosition(StartOfDocument, MoveAnchor);
|
||||||
|
|
||||||
QTextDocument::FindFlags flags = QTextDocument::FindCaseSensitively;
|
QTextDocument::FindFlags flags = QTextDocument::FindCaseSensitively;
|
||||||
QString needle = needle0;
|
QString needle = needle0;
|
||||||
|
Reference in New Issue
Block a user