Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
fzf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KMSCAKKSCFKA AKFACAMADCAS
fzf
Commits
fd8d371a
Commit
fd8d371a
authored
6 years ago
by
Paul Frybarger
Committed by
Junegunn Choi
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[zsh] Fix multiline prompt issue with 'zle reset-prompt' (#1397)
Close #867 Close #1256
parent
0e06e298
Branches
devel
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
shell/completion.zsh
+3
-6
3 additions, 6 deletions
shell/completion.zsh
shell/key-bindings.zsh
+2
-5
2 additions, 5 deletions
shell/key-bindings.zsh
with
5 additions
and
11 deletions
shell/completion.zsh
+
3
−
6
View file @
fd8d371a
...
...
@@ -60,8 +60,7 @@ __fzf_generic_path_completion() {
if
[
-n
"
$matches
"
]
;
then
LBUFFER
=
"
$lbuf$matches$tail
"
fi
zle redisplay
typeset
-f
zle-line-init
>
/dev/null
&&
zle zle-line-init
zle reset-prompt
break
fi
dir
=
$(
dirname
"
$dir
"
)
...
...
@@ -100,8 +99,7 @@ _fzf_complete() {
if
[
-n
"
$matches
"
]
;
then
LBUFFER
=
"
$lbuf$matches
"
fi
zle redisplay
typeset
-f
zle-line-init
>
/dev/null
&&
zle zle-line-init
zle reset-prompt
command rm
-f
"
$fifo
"
}
...
...
@@ -165,8 +163,7 @@ fzf-completion() {
if
[
-n
"
$matches
"
]
;
then
LBUFFER
=
"
$LBUFFER$matches
"
fi
zle redisplay
typeset
-f
zle-line-init
>
/dev/null
&&
zle zle-line-init
zle reset-prompt
# Trigger sequence given
elif
[
${#
tokens
}
-gt
1
-a
"
$tail
"
=
"
$trigger
"
]
;
then
d_cmds
=(
${
=FZF_COMPLETION_DIR_COMMANDS
:-
cd
pushd rmdir
}
)
...
...
This diff is collapsed.
Click to expand it.
shell/key-bindings.zsh
+
2
−
5
View file @
fd8d371a
...
...
@@ -29,8 +29,7 @@ __fzfcmd() {
fzf-file-widget
()
{
LBUFFER
=
"
${
LBUFFER
}
$(
__fsel
)
"
local
ret
=
$?
zle redisplay
typeset
-f
zle-line-init
>
/dev/null
&&
zle zle-line-init
zle reset-prompt
return
$ret
}
zle
-N
fzf-file-widget
...
...
@@ -59,7 +58,6 @@ fzf-cd-widget() {
cd
"
$dir
"
local
ret
=
$?
zle fzf-redraw-prompt
typeset
-f
zle-line-init
>
/dev/null
&&
zle zle-line-init
return
$ret
}
zle
-N
fzf-cd-widget
...
...
@@ -78,8 +76,7 @@ fzf-history-widget() {
zle vi-fetch-history
-n
$num
fi
fi
zle redisplay
typeset
-f
zle-line-init
>
/dev/null
&&
zle zle-line-init
zle reset-prompt
return
$ret
}
zle
-N
fzf-history-widget
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment