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
Marco Bubke
flatpak-qt-creator
Commits
06dfd937
Commit
06dfd937
authored
Feb 01, 2009
by
Martin Aumueller
Browse files
fakevim: implement 'gg' for moving to first line
parent
23a9971a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/fakevim/fakevimhandler.cpp
View file @
06dfd937
...
...
@@ -951,7 +951,15 @@ bool FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
m_subsubmode
=
FtSubSubMode
;
m_subsubdata
=
key
;
}
else
if
(
key
==
'g'
)
{
m_gflag
=
true
;
if
(
m_gflag
)
{
m_gflag
=
false
;
m_tc
.
setPosition
(
firstPositionInLine
(
1
),
KeepAnchor
);
if
(
m_config
[
ConfigStartOfLine
]
==
ConfigOn
)
moveToFirstNonBlankOnLine
();
finishMovement
();
}
else
{
m_gflag
=
true
;
}
}
else
if
(
key
==
'G'
)
{
int
n
=
m_mvcount
.
isEmpty
()
?
linesInDocument
()
:
count
();
m_tc
.
setPosition
(
firstPositionInLine
(
n
),
KeepAnchor
);
...
...
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