#! /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@

Index: wyrd-1.4.6/wyrdrc
===================================================================
--- wyrd-1.4.6.orig/wyrdrc	2013-02-03 04:40:39.000000000 +0100
+++ wyrd-1.4.6/wyrdrc	2015-11-27 12:40:37.000000000 +0100
@@ -5,11 +5,11 @@
 # the default reminder file or directory to display
 set reminders_file="$HOME/.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="sensible-editor +%line% \"%file%\""
 # command for editing a new appointment, given a filename %file%
-set edit_new_command="$EDITOR +999999 \"%file%\""
+set edit_new_command="sensible-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="sensible-editor \"%file%\""
 
 
 # templates for creating new appointments
