OP_EDITOR_KILL_LINE "delete all chars on the line"
OP_EDITOR_KILL_WORD "delete the word in front of the cursor"
OP_EDITOR_QUOTE_CHAR "quote the next typed key"
+OP_EDITOR_TRANSPOSE_CHARS "transpose character under cursor with previous"
OP_ENTER_COMMAND "enter a muttrc command"
OP_ENTER_MASK "enter a file mask"
OP_EXIT "exit this menu"
kill-line ^U delete all chars on the line
kill-word ^W delete the word in front of the cursor
quote-char ^V quote the next typed key
+transpose-chars not bound transpose character under cursor with previous
</verb>
<sect>Miscellany
goto self_insert;
}
+ case OP_EDITOR_TRANSPOSE_CHARS:
+ j = buf[curpos];
+ if(curpos == 0)
+ {
+ buf[curpos] = buf[1];
+ buf[1] = j;
+ }
+ else if (curpos == lastchar)
+ {
+ j = buf[curpos-1];
+ buf[curpos-1] = buf[curpos-2];
+ buf[curpos-2] = j;
+ }
+ else
+ {
+ buf[curpos] = buf[curpos-1];
+ buf[curpos-1] = j;
+ }
+ redraw = M_REDRAW_LINE;
+ break;
+
default:
BEEP ();
}
{ "buffy-cycle", OP_EDITOR_BUFFY_CYCLE, " " },
{ "history-up", OP_EDITOR_HISTORY_UP, NULL },
{ "history-down", OP_EDITOR_HISTORY_DOWN, NULL },
+ { "transpose-chars", OP_EDITOR_TRANSPOSE_CHARS, NULL },
{ NULL, 0, NULL }
};