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/proto/charset.pro | |
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/proto/charset.pro')
-rw-r--r-- | src/proto/charset.pro | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/proto/charset.pro b/src/proto/charset.pro index c582a8cf22..d364b8e49d 100644 --- a/src/proto/charset.pro +++ b/src/proto/charset.pro @@ -5,8 +5,9 @@ void trans_characters(char_u *buf, int bufsize); char_u *transstr(char_u *s); char_u *str_foldcase(char_u *str, int orglen, char_u *buf, int buflen); char_u *transchar(int c); +char_u *transchar_buf(buf_T *buf, int c); char_u *transchar_byte(int c); -void transchar_nonprint(char_u *buf, int c); +void transchar_nonprint(buf_T *buf, char_u *charbuf, int c); void transchar_hex(char_u *buf, int c); int byte2cells(int b); int char2cells(int c); |