mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 22:01:28 +00:00
Merge pull request #1208 from luukvbaal/preview-tui
Fix preview-tui without -a
This commit is contained in:
commit
b72090c9a3
|
@ -86,6 +86,7 @@ NNN_PREVIEWDIR="${NNN_PREVIEWDIR:-$TMPDIR/nnn/previews}"
|
||||||
NNN_PREVIEWWIDTH="${NNN_PREVIEWWIDTH:-1920}"
|
NNN_PREVIEWWIDTH="${NNN_PREVIEWWIDTH:-1920}"
|
||||||
NNN_PREVIEWHEIGHT="${NNN_PREVIEWHEIGHT:-1080}"
|
NNN_PREVIEWHEIGHT="${NNN_PREVIEWHEIGHT:-1080}"
|
||||||
NNN_PARENT="${NNN_FIFO#*.}"
|
NNN_PARENT="${NNN_FIFO#*.}"
|
||||||
|
[ "$NNN_PARENT" -eq "$NNN_PARENT" ] 2>/dev/null || NNN_PARENT=""
|
||||||
FIFOPID="$TMPDIR/nnn-preview-tui-fifopid.$NNN_PARENT"
|
FIFOPID="$TMPDIR/nnn-preview-tui-fifopid.$NNN_PARENT"
|
||||||
PREVIEWPID="$TMPDIR/nnn-preview-tui-pagerpid.$NNN_PARENT"
|
PREVIEWPID="$TMPDIR/nnn-preview-tui-pagerpid.$NNN_PARENT"
|
||||||
CURSEL="$TMPDIR/nnn-preview-tui-selection.$NNN_PARENT"
|
CURSEL="$TMPDIR/nnn-preview-tui-selection.$NNN_PARENT"
|
||||||
|
|
Loading…
Reference in a new issue