aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/misc1.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2021-12-10 17:03:22 +0100
committerBjörn Linse <bjorn.linse@gmail.com>2021-12-10 17:03:22 +0100
commit6dbd4f3787f7d6ddc27102a8d419f044c936560c (patch)
tree46d5963796d516ca6993db1110a33f2c35fefa60 /src/nvim/misc1.c
parent608f74a0dedf5510f226aee1a72f3ead7f436485 (diff)
downloadrneovim-6dbd4f3787f7d6ddc27102a8d419f044c936560c.tar.gz
rneovim-6dbd4f3787f7d6ddc27102a8d419f044c936560c.tar.bz2
rneovim-6dbd4f3787f7d6ddc27102a8d419f044c936560c.zip
refactor(misc1): move msgmore function to messages.c
Diffstat (limited to 'src/nvim/misc1.c')
-rw-r--r--src/nvim/misc1.c42
1 files changed, 0 insertions, 42 deletions
diff --git a/src/nvim/misc1.c b/src/nvim/misc1.c
index 5db942ed27..334c98b6fe 100644
--- a/src/nvim/misc1.c
+++ b/src/nvim/misc1.c
@@ -325,48 +325,6 @@ int prompt_for_number(int *mouse_used)
return i;
}
-void msgmore(long n)
-{
- long pn;
-
- if (global_busy // no messages now, wait until global is finished
- || !messaging()) { // 'lazyredraw' set, don't do messages now
- return;
- }
-
- // We don't want to overwrite another important message, but do overwrite
- // a previous "more lines" or "fewer lines" message, so that "5dd" and
- // then "put" reports the last action.
- if (keep_msg != NULL && !keep_msg_more) {
- return;
- }
-
- if (n > 0) {
- pn = n;
- } else {
- pn = -n;
- }
-
- if (pn > p_report) {
- if (n > 0) {
- vim_snprintf(msg_buf, MSG_BUF_LEN,
- NGETTEXT("%ld more line", "%ld more lines", pn),
- pn);
- } else {
- vim_snprintf(msg_buf, MSG_BUF_LEN,
- NGETTEXT("%ld line less", "%ld fewer lines", pn),
- pn);
- }
- if (got_int) {
- xstrlcat(msg_buf, _(" (Interrupted)"), MSG_BUF_LEN);
- }
- if (msg(msg_buf)) {
- set_keep_msg(msg_buf, 0);
- keep_msg_more = true;
- }
- }
-}
-
/*
* flush map and typeahead buffers and give a warning for an error
*/