Skip to content
GitLab
Menu
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
efcbd9f3
Commit
efcbd9f3
authored
Jan 16, 2021
by
Marc Cornellà
Browse files
fix(vi-mode): ignore `clip*` function errors in yank and put widgets
Fixes #9605
parent
172b32c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/vi-mode/vi-mode.plugin.zsh
View file @
efcbd9f3
...
@@ -100,13 +100,13 @@ function wrap_clipboard_widgets() {
...
@@ -100,13 +100,13 @@ function wrap_clipboard_widgets() {
eval
"
eval
"
function
${
wrapped_name
}
() {
function
${
wrapped_name
}
() {
zle .
${
widget
}
zle .
${
widget
}
printf %s
\"\$
{CUTBUFFER}
\"
| clipcopy
printf %s
\"\$
{CUTBUFFER}
\"
| clipcopy
2>/dev/null || true
}
}
"
"
else
else
eval
"
eval
"
function
${
wrapped_name
}
() {
function
${
wrapped_name
}
() {
CUTBUFFER=
\"\$
(clippaste)
\"
CUTBUFFER=
\"\$
(clippaste
2>/dev/null || echo
\$
CUTBUFFER
)
\"
zle .
${
widget
}
zle .
${
widget
}
}
}
"
"
...
...
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