diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2019-01-11 18:54:54 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2019-01-11 21:43:57 +0530 |
commit | 5df41255b293d20ea5f1a54ba1950ff483c66187 (patch) | |
tree | 277d3477d65685f63bde92ca0d27ca4dd8b3c7e4 /nnn.1 | |
parent | 625f2f88309c86395f902cb7e6e73b41c6238813 (diff) | |
download | nnn-5df41255b293d20ea5f1a54ba1950ff483c66187.tar.gz |
Fix #187
It seems the behaviour of the default opener (xdg-open) varies across platforms
and environments. Details are documented in the issue. To prevent an empty file
from being accidentally opened leading to unexpected behaviour, we are adding a
guard with the message that the empty file should be opened using edit or open
option.
Diffstat (limited to 'nnn.1')
-rw-r--r-- | nnn.1 | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -309,6 +309,11 @@ files. .Bd -literal export DISABLE_FILE_OPEN_ON_NAV=1 .Ed +.Pp +\fBNNN_RESTRICT_0B:\fR restrict opening 0-byte files due to unexpected behaviour; use \fIedit\fR or \fIopen with\fR to open the file. +.Bd -literal + export NNN_RESTRICT_0B=1 +.Ed .Sh KNOWN ISSUES If you are using urxvt you might have to set backspace key to DEC. .Sh AUTHORS |