diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-02-21 17:46:13 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-02-21 17:46:13 +0000 |
commit | afd67ce89f91bd460b51c16108c92e3375d90402 (patch) | |
tree | aa9239533df0bb5e1c59f2d5c71db9ec3ac2ed23 /mode-key.c | |
parent | 78f420e7a9806ff182c17dfa5161b3f0dc224efc (diff) |
Allow selection in vi mode.
Diffstat (limited to 'mode-key.c')
-rw-r--r-- | mode-key.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: mode-key.c,v 1.9 2009-02-13 21:39:45 nicm Exp $ */ +/* $Id: mode-key.c,v 1.10 2009-02-21 17:46:13 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net> @@ -94,7 +94,7 @@ mode_key_lookup_vi(struct mode_key_data *mdata, int key) } break; case '\r': - if (mdata->flags & MODEKEY_CANEDIT) + if (mdata->flags & (MODEKEY_CANEDIT|MODEKEY_CHOOSEMODE)) return (MODEKEYCMD_CHOOSE); return (MODEKEYCMD_COPYSELECTION); case '0': |