config: rename scrollback-indicator-style to scrollback-indicator-position

This commit is contained in:
Daniel Eklöf 2020-07-27 20:02:51 +02:00
parent aca5a64954
commit 718e5b4a77
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
6 changed files with 19 additions and 19 deletions

View file

@ -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);