summary refs log tree commit diff stats
diff options
context:
space:
mode:
authornfnty <git@nfnty.se>2017-01-28 22:56:35 +0100
committernfnty <git@nfnty.se>2017-01-28 22:56:35 +0100
commit9220c310ddfec4cfadb237a1b31c274a7c8ff244 (patch)
treee51093c15f2f16b5f2fe449ea4b001e0962c842b
parent99c6a22796e7fec02b3ab07f507730f521be8052 (diff)
downloadranger-9220c310ddfec4cfadb237a1b31c274a7c8ff244.tar.gz
data/scope.sh: `$EXTENSION` -> `$FILE_EXTENSION`
-rwxr-xr-xranger/data/scope.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/ranger/data/scope.sh b/ranger/data/scope.sh
index 4fc720d3..3c050504 100755
--- a/ranger/data/scope.sh
+++ b/ranger/data/scope.sh
@@ -30,8 +30,8 @@ PV_HEIGHT="${3}"         # Height of the preview pane (number of fitting charact
 IMAGE_CACHE_PATH="${4}"  # Full path that should be used to cache image preview
 PV_IMAGE_ENABLED="${5}"  # 'True' if image previews are enabled, 'False' otherwise.
 
-EXTENSION="${FILE_PATH##*.}"
-EXTENSION_LOWER="${EXTENSION,,}"
+FILE_EXTENSION="${FILE_PATH##*.}"
+FILE_EXTENSION_LOWER="${FILE_EXTENSION,,}"
 
 # Settings
 HIGHLIGHT_SIZE_MAX=262143  # 256KiB
@@ -40,7 +40,7 @@ PYGMENTIZE_STYLE='autumn'
 
 
 handle_extension() {
-    case "${EXTENSION_LOWER}" in
+    case "${FILE_EXTENSION_LOWER}" in
         # Archive
         a|ace|alz|arc|arj|bz|bz2|cab|cpio|deb|gz|jar|lha|lz|lzh|lzma|lzo|\
         rpm|rz|t7z|tar|tbz|tbz2|tgz|tlz|txz|tZ|tzo|war|xpi|xz|Z|zip)