commit 6d00e75dc26a24c77d63831c837a60f8497027c2
parent 90772ad05b186241136123890c6ac352de39f20f
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Thu, 28 May 2020 16:59:50 +0200
tweaks: rename a function, to be more correct
Diffstat:
4 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/files.c b/src/files.c
@@ -225,7 +225,7 @@ char *do_lockfile(const char *filename, bool ask_the_user)
free(namecopy);
if (!ask_the_user && stat(lockfilename, &fileinfo) != -1)
- warn_and_shortly_pause(_("Someone else is also editing this file"));
+ warn_and_briefly_pause(_("Someone else is also editing this file"));
else if (stat(lockfilename, &fileinfo) != -1) {
char *lockbuf, *question, *pidstring, *postedname, *promptstr;
static char lockprog[11], lockuser[17];
@@ -2142,7 +2142,7 @@ int do_writeout(bool exiting, bool withprompt)
* the name of the current file if it already has one. */
if (ISSET(RESTRICTED)) {
/* TRANSLATORS: Restricted mode forbids overwriting. */
- warn_and_shortly_pause(_("File exists -- "
+ warn_and_briefly_pause(_("File exists -- "
"cannot overwrite"));
continue;
}
@@ -2186,7 +2186,7 @@ int do_writeout(bool exiting, bool withprompt)
openfile->statinfo->st_dev != st.st_dev ||
openfile->statinfo->st_ino != st.st_ino)) {
- warn_and_shortly_pause(_("File on disk has changed"));
+ warn_and_briefly_pause(_("File on disk has changed"));
choice = do_yesno_prompt(FALSE, _("File was modified "
"since you opened it; continue saving? "));
diff --git a/src/nano.c b/src/nano.c
@@ -734,7 +734,7 @@ void do_exit(void)
/* If the SAVE_ON_EXIT flag is set, and the current file doesn't
* have a name, warn the user before prompting for a name. */
if (ISSET(SAVE_ON_EXIT))
- warn_and_shortly_pause(_("No file name"));
+ warn_and_briefly_pause(_("No file name"));
choice = do_yesno_prompt(FALSE, _("Save modified buffer? "));
}
diff --git a/src/proto.h b/src/proto.h
@@ -608,7 +608,7 @@ char *display_string(const char *buf, size_t column, size_t span,
void titlebar(const char *path);
void statusline(message_type importance, const char *msg, ...);
void statusbar(const char *msg);
-void warn_and_shortly_pause(const char *msg);
+void warn_and_briefly_pause(const char *msg);
void bottombars(int menu);
void post_one_key(const char *keystroke, const char *tag, int width);
void place_the_cursor(void);
diff --git a/src/winio.c b/src/winio.c
@@ -2250,7 +2250,7 @@ void statusbar(const char *msg)
/* Warn the user on the status bar and pause for a moment, so that the
* message can be noticed and read. */
-void warn_and_shortly_pause(const char *msg)
+void warn_and_briefly_pause(const char *msg)
{
blank_bottombars();
statusline(ALERT, msg);