]> granicus.if.org Git - neomutt/commitdiff
Rename OP_EDIT_MESSAGE to OP_EDIT_RAW_MESSAGE
authorReis Radomil <reisradomil@fake-box.com>
Wed, 15 Nov 2017 20:52:14 +0000 (21:52 +0100)
committerReis Radomil <reisradomil@fake-box.com>
Wed, 15 Nov 2017 20:52:14 +0000 (21:52 +0100)
This brings the constant name in line with the description of its
corresponding mutt-function and paves the way for a coherent name scheme
in the upcoming 'edit-raw-message' family of mutt-functions.

curs_main.c
functions.h
opcodes.h

index b3e89140fa2bd83840fbe34cee43aca82e56fef5..616fc74833d2391964ba9f8e23ffa23ae59656d4 100644 (file)
@@ -2873,7 +2873,7 @@ int mutt_index_menu(void)
         mutt_check_rescore(Context);
         break;
 
-      case OP_EDIT_MESSAGE:
+      case OP_EDIT_RAW_MESSAGE:
 
         CHECK_MSGCOUNT;
         CHECK_VISIBLE;
index 16fac4c94a2856363e8885be17a976474d400fa9..f7586513d6cbe9e7b4df25d7c2a9c078e02695d3 100644 (file)
@@ -111,7 +111,7 @@ const struct Binding OpMain[] = { /* map: index */
   { "delete-pattern",            OP_MAIN_DELETE_PATTERN,            "D" },
   { "delete-thread",             OP_DELETE_THREAD,                  "\004" },
   { "delete-subthread",          OP_DELETE_SUBTHREAD,               "\033d" },
-  { "edit",                      OP_EDIT_MESSAGE,                   "e" },
+  { "edit",                      OP_EDIT_RAW_MESSAGE,               "e" },
   { "edit-label",                OP_EDIT_LABEL,                     "Y" },
   { "edit-type",                 OP_EDIT_TYPE,                      "\005" },
   { "forward-message",           OP_FORWARD_MESSAGE,                "f" },
@@ -247,7 +247,7 @@ const struct Binding OpPager[] = { /* map: pager */
   { "delete-subthread",          OP_DELETE_SUBTHREAD,             "\033d" },
   { "set-flag",                  OP_MAIN_SET_FLAG,                "w" },
   { "clear-flag",                OP_MAIN_CLEAR_FLAG,              "W" },
-  { "edit",                      OP_EDIT_MESSAGE,                 "e" },
+  { "edit",                      OP_EDIT_RAW_MESSAGE,             "e" },
   { "edit-label",                OP_EDIT_LABEL,                   "Y" },
   { "edit-type",                 OP_EDIT_TYPE,                    "\005" },
 #ifdef USE_NNTP
index fdaf85743a3426d4b9febb0b1ce1693b84f2e5a0..a20d154e2c3e009b61ba3db23b356d38d52c99cd 100644 (file)
--- a/opcodes.h
+++ b/opcodes.h
@@ -93,7 +93,7 @@
   _fmt(OP_DISPLAY_HEADERS,                N_("display message and toggle header weeding")) \
   _fmt(OP_DISPLAY_MESSAGE,                N_("display a message")) \
   _fmt(OP_EDIT_LABEL,                     N_("add, change, or delete a message's label")) \
-  _fmt(OP_EDIT_MESSAGE,                   N_("edit the raw message")) \
+  _fmt(OP_EDIT_RAW_MESSAGE,               N_("edit the raw message")) \
   _fmt(OP_EDITOR_BACKSPACE,               N_("delete the char in front of the cursor")) \
   _fmt(OP_EDITOR_BACKWARD_CHAR,           N_("move the cursor one character to the left")) \
   _fmt(OP_EDITOR_BACKWARD_WORD,           N_("move the cursor to the beginning of the word")) \