aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-07-24 16:26:44 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-07-24 16:26:44 +0000
commite94506362028b57fa5d2c77f73a152a47cc06768 (patch)
tree5ee23dd8149ff299ab5630bef2686fecf46020ea
parentconfig: add 'show-scrollback-position' option to footrc (diff)
config: rename show-scrollback-position to scrollback-indicator
-rw-r--r--config.c6
-rw-r--r--config.h2
-rw-r--r--doc/foot.5.scd2
-rw-r--r--render.c2
4 files changed, 6 insertions, 6 deletions
diff --git a/config.c b/config.c
index 9666da61..e7ba74b2 100644
--- a/config.c
+++ b/config.c
@@ -291,8 +291,8 @@ parse_section_main(const char *key, const char *value, struct config *conf,
conf->scrollback_lines = lines;
}
- else if (strcmp(key, "show-scrollback-position") == 0)
- conf->show_scrollback_position = str_to_bool(value);
+ else if (strcmp(key, "scrollback-indicator") == 0)
+ conf->scrollback_indicator = str_to_bool(value);
else {
LOG_ERR("%s:%u: invalid key: %s", path, lineno, key);
@@ -921,7 +921,7 @@ config_load(struct config *conf, const char *conf_path)
.startup_mode = STARTUP_WINDOWED,
.fonts = tll_init(),
.scrollback_lines = 1000,
- .show_scrollback_position = true,
+ .scrollback_indicator = true,
.colors = {
.fg = default_foreground,
diff --git a/config.h b/config.h
index c21e1160..f0f077be 100644
--- a/config.h
+++ b/config.h
@@ -40,7 +40,7 @@ struct config {
tll(struct config_font) fonts;
int scrollback_lines;
- bool show_scrollback_position;
+ bool scrollback_indicator;
struct {
uint32_t fg;
diff --git a/doc/foot.5.scd b/doc/foot.5.scd
index fd5a5d42..1f71a8d3 100644
--- a/doc/foot.5.scd
+++ b/doc/foot.5.scd
@@ -68,7 +68,7 @@ in this order:
*scrollback*
Number of scrollback lines. Default: _1000_.
-*show-scrollback-position*
+*scrollback-indicator*
Boolean. Enables a position indicator when the viewport is not at
the bottom of the scrollback history. Default: _yes_.
diff --git a/render.c b/render.c
index 6611fbb9..d5cdb8dc 100644
--- a/render.c
+++ b/render.c
@@ -1290,7 +1290,7 @@ render_csd(struct terminal *term)
static void
render_scrollback_position(struct terminal *term)
{
- if (!term->conf->show_scrollback_position)
+ if (!term->conf->scrollback_indicator)
return;
/* Find absolute row number of the scrollback start */