aboutsummaryrefslogtreecommitdiffstats
path: root/modules/by-name/lf
diff options
context:
space:
mode:
Diffstat (limited to 'modules/by-name/lf')
-rw-r--r--modules/by-name/lf/lf/ctpv/helpers.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/by-name/lf/lf/ctpv/helpers.sh b/modules/by-name/lf/lf/ctpv/helpers.sh
index 6dc7fee6..30e4483a 100644
--- a/modules/by-name/lf/lf/ctpv/helpers.sh
+++ b/modules/by-name/lf/lf/ctpv/helpers.sh
@@ -59,7 +59,7 @@ preview_xxd() {
# This has been derived mathematically.
octet_columns=$(((2 * w - 22) / 7))
- if [ -n "$CTPV_LESS_PREVIEWER" ]; then
+ if [ "${CTPV_LESS_PREVIEWER:-unset}" != "-unset" ]; then
__base_xxd_preview "$1"
else
__base_xxd_preview "$1" -len "$((h * octet_columns))"