summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCélestin Matte <celestin.matte@gmail.com>2014-04-28 10:38:41 +0200
committerCélestin Matte <celestin.matte@gmail.com>2014-04-28 10:38:41 +0200
commitea73951aa99594d666f968c99808655683fa8534 (patch)
tree1e9a0a8e0892f957f6881917b71d1e16590ef9c5
parent4275d352a8f588468b88e6719325de753d12ed62 (diff)
downloadranger-ea73951aa99594d666f968c99808655683fa8534.tar.gz
Revert "Fix bugs when $EDITOR="emacs -nw""
This reverts commit 4275d352a8f588468b88e6719325de753d12ed62.
-rw-r--r--ranger/config/rifle.conf6
1 files changed, 3 insertions, 3 deletions
diff --git a/ranger/config/rifle.conf b/ranger/config/rifle.conf
index 1eaff9b8..364d7c28 100644
--- a/ranger/config/rifle.conf
+++ b/ranger/config/rifle.conf
@@ -79,9 +79,9 @@ ext x?html?, has w3m,             terminal = w3m "$@"
 # Misc
 #-------------------------------------------
 # Define the "editor" for text files as first action
-mime ^text,  label editor = $EDITOR "$@"
+mime ^text,  label editor = "$EDITOR" -- "$@"
 mime ^text,  label pager  = "$PAGER" -- "$@"
-!mime ^text, label editor, ext xml|csv|tex|py|pl|rb|sh|php = $EDITOR "$@"
+!mime ^text, label editor, ext xml|csv|tex|py|pl|rb|sh|php = "$EDITOR" -- "$@"
 !mime ^text, label pager,  ext xml|csv|tex|py|pl|rb|sh|php = "$PAGER" -- "$@"
 
 ext 1                         = man "$1"
@@ -184,5 +184,5 @@ label wallpaper, number 14, mime ^image, X = feh --bg-fill "$1"
 
 # Define the editor for non-text files + pager as last action
               !mime ^text, !ext xml|csv|tex|py|pl|rb|sh|php  = ask
-label editor, !mime ^text, !ext xml|csv|tex|py|pl|rb|sh|php  = $EDITOR "$@"
+label editor, !mime ^text, !ext xml|csv|tex|py|pl|rb|sh|php  = "$EDITOR" -- "$@"
 label pager,  !mime ^text, !ext xml|csv|tex|py|pl|rb|sh|php  = "$PAGER" -- "$@"