diff options
author | 2012-07-15 14:02:34 -0700 | |
---|---|---|
committer | 2012-07-15 14:02:34 -0700 | |
commit | 548ea1e54aa17590a573ec5a976ee0413345d360 (patch) | |
tree | 05ebb323c5babc665bae6675b5d02478605b98f4 /input.cpp | |
parent | 4755c5f8c892978919d9b652bcfee6ef220c7ca6 (diff) |
Added binding for accepting an autosuggestion
Diffstat (limited to 'input.cpp')
-rw-r--r-- | input.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -130,7 +130,8 @@ static const wchar_t *name_arr[] = L"repaint", L"up-line", L"down-line", - L"suppress-autosuggestion" + L"suppress-autosuggestion", + L"accept-autosuggestion" } ; @@ -213,6 +214,7 @@ static const wchar_t code_arr[] = R_UP_LINE, R_DOWN_LINE, R_SUPPRESS_AUTOSUGGESTION, + R_ACCEPT_AUTOSUGGESTION } ; @@ -257,7 +259,6 @@ void input_mapping_add( const wchar_t *sequence, const wchar_t *command ) { size_t i; - CHECK( sequence, ); CHECK( command, ); @@ -445,7 +446,7 @@ static wint_t input_try_mapping( const input_mapping_t &m) { wint_t c=0; int j; - + /* Check if the actual function code of this mapping is on the stack */ |