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
0dc5a124
Commit
0dc5a124
authored
Dec 28, 2008
by
hjk
Committed by
Roberto Raggi
Dec 29, 2008
Browse files
basic implementation for 'O'
parent
50cf2a7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/fakevim/handler.cpp
View file @
0dc5a124
...
...
@@ -489,6 +489,13 @@ void FakeVimHandler::Private::handleCommandMode(int key, const QString &text)
//m_tc.beginEditBlock(); // FIXME: unusable due to drawing errors
m_tc
.
movePosition
(
EndOfLine
,
MoveAnchor
);
m_tc
.
insertText
(
"
\n
"
);
}
else
if
(
key
==
'O'
)
{
m_mode
=
InsertMode
;
m_lastInsertion
.
clear
();
//m_tc.beginEditBlock(); // FIXME: unusable due to drawing errors
m_tc
.
movePosition
(
StartOfLine
,
MoveAnchor
);
m_tc
.
movePosition
(
Left
,
MoveAnchor
,
1
);
m_tc
.
insertText
(
"
\n
"
);
}
else
if
(
key
==
'p'
)
{
QString
text
=
m_registers
[
m_register
];
int
n
=
text
.
count
(
QChar
(
ParagraphSeparator
));
...
...
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