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/drawline.c | |
parent | 0e390f40e944036fb558a63b91238cfda128d95f (diff) | |
download | vim-git-32ee627750e8b7b3fa6516b893e72f6e6af54710.tar.gz |
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/drawline.c')
-rw-r--r-- | src/drawline.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drawline.c b/src/drawline.c index 0a5a4bd50..9d65aa43e 100644 --- a/src/drawline.c +++ b/src/drawline.c @@ -1764,7 +1764,7 @@ win_line( { // head byte at end of line mb_l = 1; - transchar_nonprint(extra, c); + transchar_nonprint(wp->w_buffer, extra, c); } else { @@ -2224,7 +2224,7 @@ win_line( } else if (c != NUL) { - p_extra = transchar(c); + p_extra = transchar_buf(wp->w_buffer, c); if (n_extra == 0) n_extra = byte2cells(c) - 1; #ifdef FEAT_RIGHTLEFT |