Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
cf03ee6d
Commit
cf03ee6d
authored
12 years ago
by
Robby Russell
Browse files
Options
Download
Plain Diff
Merge pull request #1534 from gberenfield/master
Tested fix for Issue #1479
parents
312da3ea
93c90a6b
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugins/vi-mode/vi-mode.plugin.zsh
+6
-11
plugins/vi-mode/vi-mode.plugin.zsh
with
6 additions
and
11 deletions
+6
-11
plugins/vi-mode/vi-mode.plugin.zsh
View file @
cf03ee6d
...
...
@@ -3,18 +3,13 @@
function
zle-keymap-select zle-line-init zle-line-finish
{
# The terminal must be in application mode when ZLE is active for $terminfo
# values to be valid.
if
((
$+
terminfo[smkx]
&&
$+
terminfo[rmkx]
))
;
then
case
"
$0
"
in
(
zle-line-init
)
# Enable terminal application mode.
echoti smkx
;;
(
zle-line-finish
)
# Disable terminal application mode.
echoti rmkx
;;
esac
if
((
${
+terminfo[smkx]
}
))
;
then
printf
'%s'
${
terminfo
[smkx]
}
fi
if
((
${
+terminfo[rmkx]
}
))
;
then
printf
'%s'
${
terminfo
[rmkx]
}
fi
zle reset-prompt
zle
-R
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
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
Menu
Projects
Groups
Snippets
Help