Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
0a665de5
Commit
0a665de5
authored
Dec 25, 2008
by
hjk
Committed by
Roberto Raggi
Dec 29, 2008
Browse files
initialize commandCode
parent
5ac95bf8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/fakevim/handler.cpp
View file @
0a665de5
...
...
@@ -153,6 +153,7 @@ FakeVimHandler::Private::Private(FakeVimHandler *parent)
{
q
=
parent
;
m_mode
=
CommandMode
;
m_commandCode
=
0
;
m_fakeEnd
=
false
;
m_lastSearchBackward
=
false
;
m_register
=
'"'
;
...
...
@@ -240,7 +241,6 @@ void FakeVimHandler::Private::finishMovement()
void
FakeVimHandler
::
Private
::
updateCommandBuffer
()
{
//qDebug() << "CMD" << m_commandBuffer;
QString
msg
=
QChar
(
m_commandCode
?
m_commandCode
:
' '
)
+
m_commandBuffer
;
emit
q
->
commandBufferChanged
(
msg
);
}
...
...
@@ -605,9 +605,10 @@ void FakeVimHandler::Private::moveToNextWord(int repeat, bool simple)
// FIXME: 'w' should stop on empty lines, too
QTextDocument
*
doc
=
m_tc
.
document
();
int
n
=
lastPositionInDocument
()
-
1
;
int
lastClass
=
0
;
QChar
c
=
doc
->
characterAt
(
m_tc
.
position
());
int
lastClass
=
charClass
(
c
,
simple
);
while
(
true
)
{
QChar
c
=
doc
->
characterAt
(
m_tc
.
position
());
c
=
doc
->
characterAt
(
m_tc
.
position
());
int
thisClass
=
charClass
(
c
,
simple
);
if
(
thisClass
!=
lastClass
&&
thisClass
!=
0
)
--
repeat
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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