diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-07-12 16:15:34 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-07-12 16:15:34 +0000 |
commit | 22d51ec1ead8077f9528727db56e54e997da1775 (patch) | |
tree | 8c1a870eeec35123d22fa20c564676fbfea19d17 /mode-key.c | |
parent | fa8333eddb747e9b3c2a72c4fab4308137891f49 (diff) | |
download | rtmux-22d51ec1ead8077f9528727db56e54e997da1775.tar.gz rtmux-22d51ec1ead8077f9528727db56e54e997da1775.tar.bz2 rtmux-22d51ec1ead8077f9528727db56e54e997da1775.zip |
Add a "back to indentation" key in copy mode to move the cursor to the first
non-whitespace character. ^ with vi and M-m with emacs key bindings. Another
from Kalle Olavi Niemitalo, thanks.
Diffstat (limited to 'mode-key.c')
-rw-r--r-- | mode-key.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -105,8 +105,9 @@ mode_key_lookup_vi(struct mode_key_data *mdata, int key) return (MODEKEYCMD_CHOOSE); return (MODEKEYCMD_COPYSELECTION); case '0': - case '^': return (MODEKEYCMD_STARTOFLINE); + case '^': + return (MODEKEYCMD_BACKTOINDENTATION); case '\033': return (MODEKEYCMD_CLEARSELECTION); case 'j': @@ -160,6 +161,8 @@ mode_key_lookup_emacs(struct mode_key_data *mdata, int key) return (MODEKEYCMD_CHOOSE); case '\001': return (MODEKEYCMD_STARTOFLINE); + case KEYC_ADDESC('m'): + return (MODEKEYCMD_BACKTOINDENTATION); case '\007': return (MODEKEYCMD_CLEARSELECTION); case '\027': |