nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit bc6b9bf9552f5b0f43847a5cf2ff2085d79a13a2
parent 4b6090ded3f772b79f573e0a9410161a3ddb58bc
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Mon, 17 Aug 2020 13:36:03 +0200

tweaks: rename a variable, to not seem to refer to the scrollbar

Diffstat:
Msrc/winio.c | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/winio.c b/src/winio.c @@ -1929,8 +1929,8 @@ void titlebar(const char *path) /* The state of the current buffer -- "Modified", "View", or "". */ char *caption; /* The presentable form of the pathname. */ - char *indicator = NULL; - /* The buffer sequence number plus buffer count. */ + char *ranking = NULL; + /* The buffer sequence number plus the total buffer count. */ /* If the screen is too small, there is no title bar. */ if (topwin == NULL) @@ -1962,10 +1962,10 @@ void titlebar(const char *path) #ifdef ENABLE_MULTIBUFFER /* If there are/were multiple buffers, show which out of how many. */ if (more_than_one) { - indicator = charalloc(24); - sprintf(indicator, "[%i/%i]", buffer_number(openfile), + ranking = charalloc(24); + sprintf(ranking, "[%i/%i]", buffer_number(openfile), buffer_number(startfile->prev)); - upperleft = indicator; + upperleft = ranking; } else #endif 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 (verlen > 0)