mirror of
https://github.com/jarun/nnn.git
synced 2024-11-19 01:19:14 +00:00
Replace restorepreview workaround
This commit is contained in:
parent
40b2250209
commit
e0c1ed273f
|
@ -1,5 +1,8 @@
|
||||||
# Description: Adds preview pipe to enable closing and re-opening
|
# Description: Adds preview pipe to enable closing and re-opening the preview
|
||||||
# the preview pane when running an undetached editor.
|
# pane when running an undetached editor. If you are using vim
|
||||||
|
# you might experience incorrectly resized window. Consider adding
|
||||||
|
# the following to your vimrc:
|
||||||
|
# autocmd VimEnter * :silent exec "!kill -s WINCH $PPID"
|
||||||
#
|
#
|
||||||
# Authors: Luuk van Baal
|
# Authors: Luuk van Baal
|
||||||
|
|
||||||
|
|
|
@ -415,7 +415,7 @@ preview_fifo() {
|
||||||
if [ -n "$selection" ]; then
|
if [ -n "$selection" ]; then
|
||||||
kill "$(cat "$PREVIEWPID")"
|
kill "$(cat "$PREVIEWPID")"
|
||||||
[ -p "$FIFO_UEBERZUG" ] && ueberzug_remove
|
[ -p "$FIFO_UEBERZUG" ] && ueberzug_remove
|
||||||
[ "$selection" = "close" ] && sleep 0.15 && pkill -P "$$" && exit
|
[ "$selection" = "close" ] && break
|
||||||
preview_file "$selection"
|
preview_file "$selection"
|
||||||
printf "%s" "$selection" > "$CURSEL"
|
printf "%s" "$selection" > "$CURSEL"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue