about summary refs log tree commit diff stats
path: root/res
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-05-11 00:17:18 +0200
committerbptato <nincsnevem662@gmail.com>2024-05-11 00:20:40 +0200
commit5c5377fbaa7290909dbd3c53d0a487d40752428c (patch)
tree7384246f2b135f55b871cb4bbe229f76560da572 /res
parentb02d940cfc20e67ee866bf47b02612aed6bcf24d (diff)
downloadchawan-5c5377fbaa7290909dbd3c53d0a487d40752428c.tar.gz
pager: take $EDITOR from env
* use EDITOR environment variable in default config, fix line number
  ordering in fallback
* autodetect vi-like editors and add line number
Diffstat (limited to 'res')
-rw-r--r--res/config.toml2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/config.toml b/res/config.toml
index c7d54aed..3ace21bd 100644
--- a/res/config.toml
+++ b/res/config.toml
@@ -238,7 +238,7 @@ urimethodmap = [
 	"/usr/local/etc/w3m/urimethodmap"
 ]
 tmpdir = "/tmp/cha"
-editor = "vi %s +%d"
+editor = "${EDITOR:-vi +%d %s}"
 cgi-dir = "${%CHA_LIBEXEC_DIR}/cgi-bin"
 download-dir = "/tmp/"
 w3m-cgi-compat = false