Commit 4c1c425b authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

bindings: add the 'linenumbers' bindable function

This makes the line-numbers toggle rebindable, like all the others.
No related merge requests found
Showing with 10 additions and 0 deletions
+10 -0
...@@ -1359,6 +1359,9 @@ Toggles smooth scrolling (when moving around with the arrow keys). ...@@ -1359,6 +1359,9 @@ Toggles smooth scrolling (when moving around with the arrow keys).
@item softwrap @item softwrap
Toggles the displaying of overlong lines on multiple screen lines. Toggles the displaying of overlong lines on multiple screen lines.
@item linenumbers
Toggles the display of line numbers in front of the text.
@item whitespacedisplay @item whitespacedisplay
Toggles the showing of whitespace. Toggles the showing of whitespace.
......
...@@ -715,6 +715,9 @@ Toggles smooth scrolling (when moving around with the arrow keys). ...@@ -715,6 +715,9 @@ Toggles smooth scrolling (when moving around with the arrow keys).
.B softwrap .B softwrap
Toggles the displaying of overlong lines on multiple screen lines. Toggles the displaying of overlong lines on multiple screen lines.
.TP .TP
.B linenumbers
Toggles the display of line numbers in front of the text.
.TP
.B whitespacedisplay .B whitespacedisplay
Toggles the showing of whitespace. Toggles the showing of whitespace.
.TP .TP
......
...@@ -1667,6 +1667,10 @@ sc *strtosc(const char *input) ...@@ -1667,6 +1667,10 @@ sc *strtosc(const char *input)
s->toggle = SMOOTH_SCROLL; s->toggle = SMOOTH_SCROLL;
else if (!strcasecmp(input, "softwrap")) else if (!strcasecmp(input, "softwrap"))
s->toggle = SOFTWRAP; s->toggle = SOFTWRAP;
#ifdef ENABLE_LINENUMBERS
else if (!strcasecmp(input, "linenumbers"))
s->toggle = LINE_NUMBERS;
#endif
else if (!strcasecmp(input, "whitespacedisplay")) else if (!strcasecmp(input, "whitespacedisplay"))
s->toggle = WHITESPACE_DISPLAY; s->toggle = WHITESPACE_DISPLAY;
#ifdef ENABLE_COLOR #ifdef ENABLE_COLOR
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment