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
a10d60a4
Commit
a10d60a4
authored
Mar 16, 2009
by
hjk
Browse files
Fixes: fakevim: implement 'x' in visual line mode
parent
5d14ef86
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/fakevim/fakevimhandler.cpp
View file @
a10d60a4
...
...
@@ -1053,7 +1053,7 @@ EventResult FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
m_opcount
=
m_mvcount
;
m_mvcount
.
clear
();
m_submode
=
DeleteSubMode
;
}
else
if
(
key
==
'd'
&&
m_visualMode
==
VisualLineMode
)
{
}
else
if
(
(
key
==
'd'
||
key
==
'x'
)
&&
m_visualMode
==
VisualLineMode
)
{
leaveVisualMode
();
int
beginLine
=
lineForPosition
(
m_marks
[
'<'
]);
int
endLine
=
lineForPosition
(
m_marks
[
'>'
]);
...
...
@@ -1321,7 +1321,7 @@ EventResult FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
m_moveType
=
MoveExclusive
;
}
finishMovement
(
"W"
);
}
else
if
(
key
==
'x'
)
{
// = "dl"
}
else
if
(
key
==
'x'
&&
m_visualMode
==
NoVisualMode
)
{
// = "dl"
m_moveType
=
MoveExclusive
;
if
(
atEndOfLine
())
moveLeft
();
...
...
@@ -1393,7 +1393,8 @@ EventResult FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
finishMovement
();
}
}
else
{
qDebug
()
<<
"IGNORED IN COMMAND MODE: "
<<
key
<<
text
;
qDebug
()
<<
"IGNORED IN COMMAND MODE: "
<<
key
<<
text
<<
" VISUAL: "
<<
m_visualMode
;
handled
=
EventUnhandled
;
}
...
...
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