File: sensible-editor.patch

package info (click to toggle)
aewan 1.0.01-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 816 kB
  • sloc: ansic: 4,439; python: 122; makefile: 67; sh: 14
file content (27 lines) | stat: -rw-r--r-- 844 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Subject: Use sensible-editor instead of vi by default
From: Robert Lemmen <robertle@semistable.com>
Bug-Debian: https://bugs.debian.org/505462
Forwarded: no
Last-Update: 2009-03-12

--- a/editmeta.c
+++ b/editmeta.c
@@ -53,7 +53,7 @@ void edit_metainfo(void) {
    
    editor = getenv("VISUAL");
    if (!editor) editor = getenv("EDITOR");
-   if (!editor) editor = "vi";
+   if (!editor) editor = "sensible-editor";
 
    /* create a temporary file */
    strcpy(tmpname, "/tmp/aewan-XXXXXX");
--- a/man/man5/aewan.5
+++ b/man/man5/aewan.5
@@ -47,7 +47,6 @@ just means that the lines above repeat a certain number of times.
    >Layer
    (...there are <layer-count> such blocks...)
 >Aewan Document v1
-.ff
 
 Indentation is ignored, but all other whitespace is significant.
 In particular, you can't omit the space that immediately follows