Skip to content

Commit

Permalink
Replace restorepreview workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
luukvbaal authored and jarun committed Dec 25, 2021
1 parent 3be2dd8 commit 06bf4f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions patches/restorepreview/mainline.diff
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Description: Adds preview pipe to enable closing and re-opening
# the preview pane when running an undetached editor.
# Description: Adds preview pipe to enable closing and re-opening the preview
# 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

Expand Down
2 changes: 1 addition & 1 deletion plugins/preview-tui
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ preview_fifo() {
if [ -n "$selection" ]; then
kill "$(cat "$PREVIEWPID")"
[ -p "$FIFO_UEBERZUG" ] && ueberzug_remove
[ "$selection" = "close" ] && sleep 0.15 && pkill -P "$$" && exit
[ "$selection" = "close" ] && break
preview_file "$selection"
printf "%s" "$selection" > "$CURSEL"
fi
Expand Down

0 comments on commit 06bf4f5

Please sign in to comment.