aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-06-03 22:45:00 +0200
committerGitHub <noreply@github.com>2019-06-03 22:45:00 +0200
commitdc4fa0b24dd65a72f66e853e9f5eb42a2e1973ff (patch)
tree771c7807040e7ff6f22eaa65b82c3d7cda24c53e /src
parent4841c46e3384b09caaaded4936cde7be461d1b3c (diff)
parentc06504687dd47b10d1acd51d6360a513e36e3de5 (diff)
downloadrneovim-dc4fa0b24dd65a72f66e853e9f5eb42a2e1973ff.tar.gz
rneovim-dc4fa0b24dd65a72f66e853e9f5eb42a2e1973ff.tar.bz2
rneovim-dc4fa0b24dd65a72f66e853e9f5eb42a2e1973ff.zip
Merge #10109 from erw7/fix-screenchar-on-headless-mode
ref #9338
Diffstat (limited to 'src')
-rw-r--r--src/nvim/message.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c
index a597fb4866..5188824901 100644
--- a/src/nvim/message.c
+++ b/src/nvim/message.c
@@ -1806,8 +1806,13 @@ void msg_puts_attr_len(const char *const str, const ptrdiff_t len, int attr)
// different, e.g. for Win32 console) or we just don't know where the
// cursor is.
if (msg_use_printf()) {
+ int saved_msg_col = msg_col;
msg_puts_printf(str, len);
- } else {
+ if (headless_mode) {
+ msg_col = saved_msg_col;
+ }
+ }
+ if (!msg_use_printf() || (headless_mode && default_grid.chars)) {
msg_puts_display((const char_u *)str, len, attr, false);
}
}