Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
dc7a94fc
Commit
dc7a94fc
authored
Jan 16, 2009
by
hjk
Browse files
fakevim: code de-obfuscation
parent
b1602738
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/fakevim/fakevimhandler.cpp
View file @
dc7a94fc
...
...
@@ -144,7 +144,7 @@ struct EditOperation
QString
m_to
;
};
static
QDebug
&
operator
<<
(
QDebug
&
ts
,
const
EditOperation
&
op
)
QDebug
&
operator
<<
(
QDebug
&
ts
,
const
EditOperation
&
op
)
{
if
(
op
.
m_itemCount
>
0
)
{
ts
<<
"
\n
EDIT BLOCK WITH "
<<
op
.
m_itemCount
<<
" ITEMS"
;
...
...
@@ -1410,7 +1410,7 @@ void FakeVimHandler::Private::handleExCommand(const QString &cmd0)
void
FakeVimHandler
::
Private
::
search
(
const
QString
&
needle0
,
bool
forward
)
{
showBlackMessage
(
"?/"
[
m_lastSearchForward
^
forward
]
+
needle0
);
showBlackMessage
(
(
forward
?
'/'
:
'?'
)
+
needle0
);
QTextCursor
orig
=
m_tc
;
QTextDocument
::
FindFlags
flags
=
QTextDocument
::
FindCaseSensitively
;
if
(
!
forward
)
...
...
@@ -1423,7 +1423,7 @@ void FakeVimHandler::Private::search(const QString &needle0, bool forward)
needle
.
replace
(
"
\\
<"
,
""
);
// start of word
needle
.
replace
(
"
\\
>"
,
""
);
// end of word
qDebug
()
<<
"NEEDLE "
<<
needle0
<<
needle
<<
"FORWARD"
<<
forward
<<
flags
;
//
qDebug() << "NEEDLE " << needle0 << needle << "FORWARD" << forward << flags;
if
(
forward
)
m_tc
.
movePosition
(
Right
,
MoveAnchor
,
1
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment