aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-07-25 12:40:46 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-07-25 12:40:46 +0000
commit9edd71a741a3aeff89fe04f51582214d69bbde5d (patch)
tree0312d84667a58b1b35bdd5a06b2b48a1b3d49a4e
parentconfig: rename scrollback-indicator-style value 'moving' to 'relative' (diff)
config: rename scrollback-indicator-style value 'static' to 'fixed'
-rw-r--r--config.c6
-rw-r--r--config.h2
-rw-r--r--doc/foot.5.scd4
3 files changed, 6 insertions, 6 deletions
diff --git a/config.c b/config.c
index 59b824b8..b6af1d26 100644
--- a/config.c
+++ b/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) {
if (strcmp(value, "none") == 0)
conf->scrollback.indicator.style = SCROLLBACK_INDICATOR_STYLE_NONE;
- else if (strcmp(value, "static") == 0)
- conf->scrollback.indicator.style = SCROLLBACK_INDICATOR_STYLE_STATIC;
- else if (strcmp(value, "moving") == 0)
+ else if (strcmp(value, "fixed") == 0)
+ conf->scrollback.indicator.style = SCROLLBACK_INDICATOR_STYLE_FIXED;
+ else if (strcmp(value, "relative") == 0)
conf->scrollback.indicator.style = SCROLLBACK_INDICATOR_STYLE_RELATIVE;
else {
LOG_ERR("%s:%d: scrollback-indicator-style must be one of "
diff --git a/config.h b/config.h
index 030bfc88..57701606 100644
--- a/config.h
+++ b/config.h
@@ -45,7 +45,7 @@ struct config {
struct {
enum {
SCROLLBACK_INDICATOR_STYLE_NONE,
- SCROLLBACK_INDICATOR_STYLE_STATIC,
+ SCROLLBACK_INDICATOR_STYLE_FIXED,
SCROLLBACK_INDICATOR_STYLE_RELATIVE
} style;
diff --git a/doc/foot.5.scd b/doc/foot.5.scd
index 496042b3..573eb313 100644
--- a/doc/foot.5.scd
+++ b/doc/foot.5.scd
@@ -70,8 +70,8 @@ in this order:
*scrollback-indicator-style*
Configures the style of the scrollback position indicator. One of
- *none*, *static* or *relative*. *none* disables the indicator
- completely. *static* always renders the indicator near the top at
+ *none*, *fixed* or *relative*. *none* disables the indicator
+ completely. *fixed* always renders the indicator near the top at
the window, and *relative* renders the indicator at the position
corresponding to the current scrollback position. Default:
_relative_.