wyrd (1.4.4-1) 01_editor

Summary

 wyrdrc |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

    
download this patch

Patch contents

#! /bin/sh /usr/share/dpatch/dpatch-run
## 01_editor_patch.dpatch by Kevin Coyner <kcoyner@debian.org>
## Original diff by Frank Terbeck
##
## DP: editorpatch

@DPATCH@

--- wyrd-1.4.1.orig/wyrdrc  2006-11-27 11:42:27.000000000 +0100
+++ wyrd-1.4.1/wyrdrc	2006-11-27 11:42:35.000000000 +0100
@@ -5,11 +5,11 @@
 # the default reminder file to display
 set reminders_file="~/.reminders"
 # command for editing an old appointment, given a line number %line% and filename %file%
-set edit_old_command="$EDITOR +%line% %file%"
+set edit_old_command="${VISUAL:-$EDITOR} +%line% %file%"
 # command for editing a new appointment, given a filename %file%
-set edit_new_command="$EDITOR +999999 %file%"
+set edit_new_command="${VISUAL:-$EDITOR} +999999 %file%"
 # command for free editing of the reminders file, given a filename %file%
-set edit_any_command="$EDITOR %file%"
+set edit_any_command="${VISUAL:-$EDITOR} %file%"
 
 
 # templates for creating new appointments