mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-12 05:34:01 -04:00
config: rename scrollback-indicator-style value 'static' to 'fixed'
This commit is contained in:
parent
e3be2cbd6f
commit
9edd71a741
3 changed files with 6 additions and 6 deletions
6
config.c
6
config.c
|
|
@ -294,9 +294,9 @@ parse_section_main(const char *key, const char *value, struct config *conf,
|
||||||
else if (strcmp(key, "scrollback-indicator") == 0) {
|
else if (strcmp(key, "scrollback-indicator") == 0) {
|
||||||
if (strcmp(value, "none") == 0)
|
if (strcmp(value, "none") == 0)
|
||||||
conf->scrollback.indicator.style = SCROLLBACK_INDICATOR_STYLE_NONE;
|
conf->scrollback.indicator.style = SCROLLBACK_INDICATOR_STYLE_NONE;
|
||||||
else if (strcmp(value, "static") == 0)
|
else if (strcmp(value, "fixed") == 0)
|
||||||
conf->scrollback.indicator.style = SCROLLBACK_INDICATOR_STYLE_STATIC;
|
conf->scrollback.indicator.style = SCROLLBACK_INDICATOR_STYLE_FIXED;
|
||||||
else if (strcmp(value, "moving") == 0)
|
else if (strcmp(value, "relative") == 0)
|
||||||
conf->scrollback.indicator.style = SCROLLBACK_INDICATOR_STYLE_RELATIVE;
|
conf->scrollback.indicator.style = SCROLLBACK_INDICATOR_STYLE_RELATIVE;
|
||||||
else {
|
else {
|
||||||
LOG_ERR("%s:%d: scrollback-indicator-style must be one of "
|
LOG_ERR("%s:%d: scrollback-indicator-style must be one of "
|
||||||
|
|
|
||||||
2
config.h
2
config.h
|
|
@ -45,7 +45,7 @@ struct config {
|
||||||
struct {
|
struct {
|
||||||
enum {
|
enum {
|
||||||
SCROLLBACK_INDICATOR_STYLE_NONE,
|
SCROLLBACK_INDICATOR_STYLE_NONE,
|
||||||
SCROLLBACK_INDICATOR_STYLE_STATIC,
|
SCROLLBACK_INDICATOR_STYLE_FIXED,
|
||||||
SCROLLBACK_INDICATOR_STYLE_RELATIVE
|
SCROLLBACK_INDICATOR_STYLE_RELATIVE
|
||||||
} style;
|
} style;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -70,8 +70,8 @@ in this order:
|
||||||
|
|
||||||
*scrollback-indicator-style*
|
*scrollback-indicator-style*
|
||||||
Configures the style of the scrollback position indicator. One of
|
Configures the style of the scrollback position indicator. One of
|
||||||
*none*, *static* or *relative*. *none* disables the indicator
|
*none*, *fixed* or *relative*. *none* disables the indicator
|
||||||
completely. *static* always renders the indicator near the top at
|
completely. *fixed* always renders the indicator near the top at
|
||||||
the window, and *relative* renders the indicator at the position
|
the window, and *relative* renders the indicator at the position
|
||||||
corresponding to the current scrollback position. Default:
|
corresponding to the current scrollback position. Default:
|
||||||
_relative_.
|
_relative_.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue