summaryrefslogtreecommitdiffstats
path: root/src/gram.y
diff options
context:
space:
mode:
authorAndrés <andmarti@gmail.com>2021-03-13 00:37:01 -0300
committerAndrés <andmarti@gmail.com>2021-03-13 00:37:01 -0300
commit58863f09be7d8839f52b2264ec709c8be5ff1bc2 (patch)
treeac0b219de828e96005ffe29c4868ee4076cb07d4 /src/gram.y
parent8274b7f0580cf95a157fb7a2bf68a50100c30ac8 (diff)
Added new 'input_bar_bottom' configuration variable
Diffstat (limited to 'src/gram.y')
-rwxr-xr-xsrc/gram.y12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/gram.y b/src/gram.y
index 8be6db6..aafe0f2 100755
--- a/src/gram.y
+++ b/src/gram.y
@@ -243,6 +243,7 @@ token S_YANKCOL
%token K_NOFILENAME_WITH_MODE
%token K_OVERLAP
%token K_NOOVERLAP
+%token K_INPUT_BAR_BOTTOM
%token K_TRUNCATE
%token K_NOTRUNCATE
%token K_QUIT_AFTERLOAD
@@ -1060,9 +1061,18 @@ setitem :
| K_OVERLAP '=' NUMBER { if ($3 == 0) parse_str(user_conf_d, "overlap=0", TRUE);
else parse_str(user_conf_d, "overlap=1", TRUE); }
| K_OVERLAP { parse_str(user_conf_d, "overlap=1", TRUE); }
+ | K_INPUT_BAR_BOTTOM '=' NUMBER {
+ if ($3 == 0) parse_str(user_conf_d, "input_bar_bottom=0", TRUE);
+ else parse_str(user_conf_d, "input_bar_bottom=1", TRUE);
+ ui_mv_bottom_bar();
+ }
+ | K_INPUT_BAR_BOTTOM { parse_str(user_conf_d, "input_bar_bottom=1", TRUE);
+ ui_mv_bottom_bar();
+ }
+
| K_NOOVERLAP { parse_str(user_conf_d, "overlap=0", TRUE); }
- | K_TRUNCATE '=' NUMBER { if ($3 == 0) parse_str(user_conf_d, "truncate=0", TRUE);
+ | K_TRUNCATE '=' NUMBER { if ($3 == 0) parse_str(user_conf_d, "truncate=0", TRUE);
else parse_str(user_conf_d, "truncate=1", TRUE); }
| K_TRUNCATE { parse_str(user_conf_d, "truncate=1", TRUE); }
| K_NOTRUNCATE { parse_str(user_conf_d, "truncate=0", TRUE); }