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
8867568c
Commit
8867568c
authored
Jan 23, 2009
by
hjk
Browse files
Fixes: fakevim: implement first approximation of Ctrl-D and Ctrl-U
parent
4f1dd949
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/fakevim/fakevimhandler.cpp
View file @
8867568c
...
...
@@ -1076,6 +1076,20 @@ bool FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
}
recordInsertText
(
str
);
recordEndGroup
();
}
else
if
(
key
==
control
(
'd'
))
{
int
sline
=
cursorLineOnScreen
();
// FIXME: this should use the "scroll" option, and "count"
moveDown
(
linesOnScreen
()
/
2
);
moveToFirstNonBlankOnLine
();
scrollToLineInDocument
(
cursorLineInDocument
()
-
sline
);
finishMovement
();
}
else
if
(
key
==
control
(
'u'
))
{
int
sline
=
cursorLineOnScreen
();
// FIXME: this should use the "scroll" option, and "count"
moveUp
(
linesOnScreen
()
/
2
);
moveToFirstNonBlankOnLine
();
scrollToLineInDocument
(
cursorLineInDocument
()
-
sline
);
finishMovement
();
}
else
if
(
key
==
Key_PageDown
||
key
==
control
(
'f'
))
{
moveDown
(
count
()
*
(
linesOnScreen
()
-
2
));
finishMovement
();
...
...
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