mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-01 01:40:13 -05:00
config: rename scrollback-indicator-style to scrollback-indicator-position
This commit is contained in:
parent
aca5a64954
commit
718e5b4a77
6 changed files with 19 additions and 19 deletions
10
render.c
10
render.c
|
|
@ -1290,7 +1290,7 @@ render_csd(struct terminal *term)
|
|||
static void
|
||||
render_scrollback_position(struct terminal *term)
|
||||
{
|
||||
if (term->conf->scrollback.indicator.style == SCROLLBACK_INDICATOR_STYLE_NONE)
|
||||
if (term->conf->scrollback.indicator.position == SCROLLBACK_INDICATOR_POSITION_NONE)
|
||||
return;
|
||||
|
||||
struct wayland *wayl = term->wl;
|
||||
|
|
@ -1414,16 +1414,16 @@ render_scrollback_position(struct terminal *term)
|
|||
|
||||
/* *Where* to render - parent relative coordinates */
|
||||
int surf_top = 0;
|
||||
switch (term->conf->scrollback.indicator.style) {
|
||||
case SCROLLBACK_INDICATOR_STYLE_NONE:
|
||||
switch (term->conf->scrollback.indicator.position) {
|
||||
case SCROLLBACK_INDICATOR_POSITION_NONE:
|
||||
assert(false);
|
||||
return;
|
||||
|
||||
case SCROLLBACK_INDICATOR_STYLE_FIXED:
|
||||
case SCROLLBACK_INDICATOR_POSITION_FIXED:
|
||||
surf_top = term->cell_height - margin;
|
||||
break;
|
||||
|
||||
case SCROLLBACK_INDICATOR_STYLE_RELATIVE: {
|
||||
case SCROLLBACK_INDICATOR_POSITION_RELATIVE: {
|
||||
int lines = term->rows - 3; /* Avoid using first and two last rows */
|
||||
assert(lines > 0);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue