diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-06-10 14:16:49 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-06-10 14:16:49 +0200 |
commit | 32ee627750e8b7b3fa6516b893e72f6e6af54710 (patch) | |
tree | dfa25269bbbaaf317765ff0ef0b059362c33f920 /src/message.c | |
parent | 0e390f40e944036fb558a63b91238cfda128d95f (diff) |
patch 8.2.0943: displaying ^M or ^J depends on current bufferv8.2.0943
Problem: Displaying ^M or ^J depends on current buffer.
Solution: Pass the displayed buffer to transchar(). (closes #6225)
Diffstat (limited to 'src/message.c')
-rw-r--r-- | src/message.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/message.c b/src/message.c index 45217e2c89..006e648fe1 100644 --- a/src/message.c +++ b/src/message.c @@ -1752,7 +1752,7 @@ str2special( // For multi-byte characters check for an illegal byte. if (has_mbyte && MB_BYTE2LEN(*str) > len) { - transchar_nonprint(buf, c); + transchar_nonprint(curbuf, buf, c); *sp = str + 1; return buf; } |