You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

use_usr_bin_editor.patch 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. From: Antonio Radici <antonio@debian.org>
  2. Date: Thu, 27 Feb 2014 16:06:15 +0100
  3. Subject: use_usr_bin_editor
  4. Even if EDITOR is not set, mutt will always use /usr/bin/editor
  5. (which is set by update-alternatives), rather than falling back
  6. to vi.
  7. Gbp-Pq: Topic debian-specific
  8. ---
  9. init.c | 2 +-
  10. init.h | 2 +-
  11. 2 files changed, 2 insertions(+), 2 deletions(-)
  12. diff --git a/init.c b/init.c
  13. index 1401664..e0a0757 100644
  14. --- a/init.c
  15. +++ b/init.c
  16. @@ -3129,7 +3129,7 @@ void mutt_init (int skip_sys_rc, LIST *commands)
  17. {
  18. p = getenv ("EDITOR");
  19. if (!p)
  20. - p = "vi";
  21. + p = "/usr/bin/editor";
  22. }
  23. Editor = safe_strdup (p);
  24. Visual = safe_strdup (p);
  25. diff --git a/init.h b/init.h
  26. index 0e4f47f..7768683 100644
  27. --- a/init.h
  28. +++ b/init.h
  29. @@ -686,7 +686,7 @@ struct option_t MuttVars[] = {
  30. ** .pp
  31. ** This variable specifies which editor is used by mutt.
  32. ** It defaults to the value of the \fC$$$VISUAL\fP, or \fC$$$EDITOR\fP, environment
  33. - ** variable, or to the string ``vi'' if neither of those are set.
  34. + ** variable, or to the string ``/usr/bin/editor'' if neither of those are set.
  35. ** .pp
  36. ** The \fC$$editor\fP string may contain a \fI%s\fP escape, which will be replaced by the name
  37. ** of the file to be edited. If the \fI%s\fP escape does not appear in \fC$$editor\fP, a