aboutsummaryrefslogtreecommitdiffhomepage
path: root/input.cpp
diff options
context:
space:
mode:
authorGravatar Julian Aron Prenner <julian@linux4you.it>2014-01-15 15:07:22 +0100
committerGravatar Julian Aron Prenner <julian@linux4you.it>2014-01-15 15:07:22 +0100
commitc8d5131a42b8117987d2a278d69edb21a7cf9383 (patch)
tree9b4d363e2567d98656a2a80b22281aca731ded0a /input.cpp
parentfc21bb6eda40045b28dbd865346cad80aa3d6274 (diff)
Add experimental support for selection and visual mode
Diffstat (limited to 'input.cpp')
-rw-r--r--input.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/input.cpp b/input.cpp
index ba0f6035..75e0b33c 100644
--- a/input.cpp
+++ b/input.cpp
@@ -137,7 +137,9 @@ static const wchar_t * const name_arr[] =
L"up-line",
L"down-line",
L"suppress-autosuggestion",
- L"accept-autosuggestion"
+ L"accept-autosuggestion",
+ L"begin-selection",
+ L"end-selection",
}
;
@@ -227,7 +229,9 @@ static const wchar_t code_arr[] =
R_UP_LINE,
R_DOWN_LINE,
R_SUPPRESS_AUTOSUGGESTION,
- R_ACCEPT_AUTOSUGGESTION
+ R_ACCEPT_AUTOSUGGESTION,
+ R_BEGIN_SELECTION,
+ R_END_SELECTION
}
;
@@ -265,7 +269,7 @@ const wchar_t *input_get_bind_mode()
const env_var_t bind_mode_var = env_get_string(FISH_BIND_MODE_VAR);
if(!bind_mode_var.missing())
{
- bind_mode = bind_mode_var.c_str();
+ bind_mode = bind_mode_var.c_str();
}
return bind_mode;
}