commit b9f533a69e571e84958fa69699427de6f6672547
parent ac31669ec3884cb7254cb4d2e249c600e7172887
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Fri, 25 May 2018 20:09:24 +0200
tweaks: rename a function, for more aptness and extra contrast
Diffstat:
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/nano.c b/src/nano.c
@@ -1543,7 +1543,7 @@ int get_keycode(const char *keyname, const int standard)
#ifdef ENABLE_LINENUMBERS
/* Ensure that the margin can accomodate the buffer's highest line number. */
-void check_margin(void)
+void confirm_margin(void)
{
int needed_margin = digits(openfile->filebot->lineno) + 1;
@@ -2667,7 +2667,7 @@ int main(int argc, char **argv)
while (TRUE) {
#ifdef ENABLE_LINENUMBERS
- check_margin();
+ confirm_margin();
#endif
if (currmenu != MMAIN)
display_main_list();
diff --git a/src/proto.h b/src/proto.h
@@ -443,7 +443,7 @@ void disable_flow_control(void);
void enable_flow_control(void);
void terminal_init(void);
#ifdef ENABLE_LINENUMBERS
-void check_margin(void);
+void confirm_margin(void);
#endif
void unbound_key(int code);
bool okay_for_view(const sc *shortcut);
diff --git a/src/text.c b/src/text.c
@@ -3338,7 +3338,7 @@ void do_linter(void)
titlebar(NULL);
adjust_viewport(CENTERING);
#ifdef ENABLE_LINENUMBERS
- check_margin();
+ confirm_margin();
#endif
edit_refresh();
statusbar(curlint->msg);