aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--AUTHORS1
-rwxr-xr-xexamples/data/uzbl/scripts/formfiller.sh7
2 files changed, 6 insertions, 2 deletions
diff --git a/AUTHORS b/AUTHORS
index bc3b163..e9b97a9 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -35,6 +35,7 @@ Contributors:
Chris van Dijk (quigybo) - work on uzbl_tabbed.py
Moritz Lenz - small doc fix
Sergey Shepelev (temoto) - doc patch
+ Tassilo Horn (tsdh) - $VISUAL patch
Originaly based on http://trac.webkit.org/browser/trunk/WebKitTools/GtkLauncher/main.c
Which is copyrighted:
diff --git a/examples/data/uzbl/scripts/formfiller.sh b/examples/data/uzbl/scripts/formfiller.sh
index bbb9d1a..10afaba 100755
--- a/examples/data/uzbl/scripts/formfiller.sh
+++ b/examples/data/uzbl/scripts/formfiller.sh
@@ -16,8 +16,11 @@ keydir=${XDG_DATA_HOME:-$HOME/.local/share}/uzbl/forms
[ -d "`dirname $keydir`" ] || exit 1
[ -d "$keydir" ] || mkdir "$keydir"
-#editor=gvim
-editor='urxvt -e vim'
+editor=${VISUAL}
+if [[ -z ${editor} ]]; then
+ #editor='gvim'
+ editor='urxvt -e vim'
+fi
config=$1; shift
pid=$1; shift