mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-31 07:11:09 -04:00
config: rename show-scrollback-position to scrollback-indicator
This commit is contained in:
parent
2c6f7adc17
commit
e945063620
4 changed files with 6 additions and 6 deletions
6
config.c
6
config.c
|
|
@ -291,8 +291,8 @@ parse_section_main(const char *key, const char *value, struct config *conf,
|
||||||
conf->scrollback_lines = lines;
|
conf->scrollback_lines = lines;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (strcmp(key, "show-scrollback-position") == 0)
|
else if (strcmp(key, "scrollback-indicator") == 0)
|
||||||
conf->show_scrollback_position = str_to_bool(value);
|
conf->scrollback_indicator = str_to_bool(value);
|
||||||
|
|
||||||
else {
|
else {
|
||||||
LOG_ERR("%s:%u: invalid key: %s", path, lineno, key);
|
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,
|
.startup_mode = STARTUP_WINDOWED,
|
||||||
.fonts = tll_init(),
|
.fonts = tll_init(),
|
||||||
.scrollback_lines = 1000,
|
.scrollback_lines = 1000,
|
||||||
.show_scrollback_position = true,
|
.scrollback_indicator = true,
|
||||||
|
|
||||||
.colors = {
|
.colors = {
|
||||||
.fg = default_foreground,
|
.fg = default_foreground,
|
||||||
|
|
|
||||||
2
config.h
2
config.h
|
|
@ -40,7 +40,7 @@ struct config {
|
||||||
tll(struct config_font) fonts;
|
tll(struct config_font) fonts;
|
||||||
|
|
||||||
int scrollback_lines;
|
int scrollback_lines;
|
||||||
bool show_scrollback_position;
|
bool scrollback_indicator;
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
uint32_t fg;
|
uint32_t fg;
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,7 @@ in this order:
|
||||||
*scrollback*
|
*scrollback*
|
||||||
Number of scrollback lines. Default: _1000_.
|
Number of scrollback lines. Default: _1000_.
|
||||||
|
|
||||||
*show-scrollback-position*
|
*scrollback-indicator*
|
||||||
Boolean. Enables a position indicator when the viewport is not at
|
Boolean. Enables a position indicator when the viewport is not at
|
||||||
the bottom of the scrollback history. Default: _yes_.
|
the bottom of the scrollback history. Default: _yes_.
|
||||||
|
|
||||||
|
|
|
||||||
2
render.c
2
render.c
|
|
@ -1290,7 +1290,7 @@ render_csd(struct terminal *term)
|
||||||
static void
|
static void
|
||||||
render_scrollback_position(struct terminal *term)
|
render_scrollback_position(struct terminal *term)
|
||||||
{
|
{
|
||||||
if (!term->conf->show_scrollback_position)
|
if (!term->conf->scrollback_indicator)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* Find absolute row number of the scrollback start */
|
/* Find absolute row number of the scrollback start */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue