about summary refs log tree commit diff stats
path: root/scripts
diff options
context:
space:
mode:
authorCélestin Matte <celestin.matte@gmail.com>2014-04-26 17:53:18 +0200
committerCélestin Matte <celestin.matte@gmail.com>2014-04-26 18:01:47 +0200
commit4275d352a8f588468b88e6719325de753d12ed62 (patch)
treea4f4ae06feab1fe41b7555c88f95968d8fb61537 /scripts
parent3e31022b943f33f0466f9f5b7b452cf2363bfb40 (diff)
downloadranger-4275d352a8f588468b88e6719325de753d12ed62.tar.gz
Fix bugs when $EDITOR="emacs -nw"
This patch fixes 2 problems at once in the default config, which prevent one
from editing files when his $EDITOR variable is set to "emacs -nw":
- $EDITOR variables consisting of "program name + options" are not handled
  correctly because of quotes around $EDITOR. As a result, if $EDITOR is not
  a simple program name (i.e. if it includes options, as in "emacs -nw"), the
  full string is taken as a program and fails to run.
  Error message: (/bin/sh: 1: emacs -nw: not found)
  Removing quotes fixes this problem.
- emacs does not seems to handle the "--" correctly: it does not open any file
  when it is there. I don't know why it is there, but removing it does not
  prevent other editors (vim, nano) to run correctly, and makes emacs work.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions