tweaks: rename a variable, to not seem to refer to the scrollbar
parent
4b6090ded3
commit
bc6b9bf955
12
src/winio.c
12
src/winio.c
|
@ -1929,8 +1929,8 @@ void titlebar(const char *path)
|
||||||
/* The state of the current buffer -- "Modified", "View", or "". */
|
/* The state of the current buffer -- "Modified", "View", or "". */
|
||||||
char *caption;
|
char *caption;
|
||||||
/* The presentable form of the pathname. */
|
/* The presentable form of the pathname. */
|
||||||
char *indicator = NULL;
|
char *ranking = NULL;
|
||||||
/* The buffer sequence number plus buffer count. */
|
/* The buffer sequence number plus the total buffer count. */
|
||||||
|
|
||||||
/* If the screen is too small, there is no title bar. */
|
/* If the screen is too small, there is no title bar. */
|
||||||
if (topwin == NULL)
|
if (topwin == NULL)
|
||||||
|
@ -1962,10 +1962,10 @@ void titlebar(const char *path)
|
||||||
#ifdef ENABLE_MULTIBUFFER
|
#ifdef ENABLE_MULTIBUFFER
|
||||||
/* If there are/were multiple buffers, show which out of how many. */
|
/* If there are/were multiple buffers, show which out of how many. */
|
||||||
if (more_than_one) {
|
if (more_than_one) {
|
||||||
indicator = charalloc(24);
|
ranking = charalloc(24);
|
||||||
sprintf(indicator, "[%i/%i]", buffer_number(openfile),
|
sprintf(ranking, "[%i/%i]", buffer_number(openfile),
|
||||||
buffer_number(startfile->prev));
|
buffer_number(startfile->prev));
|
||||||
upperleft = indicator;
|
upperleft = ranking;
|
||||||
} else
|
} else
|
||||||
#endif
|
#endif
|
||||||
upperleft = BRANDING;
|
upperleft = BRANDING;
|
||||||
|
@ -2010,7 +2010,7 @@ void titlebar(const char *path)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
free(indicator);
|
free(ranking);
|
||||||
|
|
||||||
/* If we have side spaces left, center the path name. */
|
/* If we have side spaces left, center the path name. */
|
||||||
if (verlen > 0)
|
if (verlen > 0)
|
||||||
|
|
Loading…
Reference in New Issue