File: 2001_editor.patch

package info (click to toggle)
astroidmail 0.16%2B20240629-1.1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 5,136 kB
  • sloc: cpp: 21,133; ansic: 1,619; python: 93; sh: 73; makefile: 11
file content (22 lines) | stat: -rw-r--r-- 1,030 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
Description: use sensible-editor by default
Author: Jonas Smedegaard <dr@jones.dk>
Last-Update: 2024-06-05
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/src/config.cc
+++ b/src/config.cc
@@ -223,13 +223,8 @@
 
     /* editor */
     // also useful: '+/^\\s*\\n/' '+nohl'
-# ifndef DISABLE_EMBEDDED
-    default_config.put ("editor.cmd", "gvim -geom 10x10 --servername %2 --socketid %3 -f -c 'set ft=mail' '+set fileencoding=utf-8' '+set ff=unix' '+set enc=utf-8' '+set fo+=w' %1");
-    default_config.put ("editor.external_editor", false); // should be true on Wayland
-# else
-    default_config.put ("editor.cmd", "gvim -f -c 'set ft=mail' '+set fileencoding=utf-8' '+set enc=utf-8' '+set ff=unix' '+set fo+=w' %1");
+    default_config.put ("editor.cmd", "sensible-editor %1");
     default_config.put ("editor.external_editor", true); // should be true on Wayland
-# endif
 
     default_config.put ("editor.charset", "utf-8");
     default_config.put ("editor.save_draft_on_force_quit", true);