From b9f533a69e571e84958fa69699427de6f6672547 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Fri, 25 May 2018 20:09:24 +0200 Subject: [PATCH] tweaks: rename a function, for more aptness and extra contrast --- src/nano.c | 4 ++-- src/proto.h | 2 +- src/text.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/nano.c b/src/nano.c index be41e029..8ac4dd85 100644 --- 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 index 2c6f1bda..5681be22 100644 --- 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 index a17b3c6e..00e114aa 100644 --- 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);