Mercurial > vim
comparison src/gui_beval.c @ 20782:c4bce986c31a v8.2.0943
patch 8.2.0943: displaying ^M or ^J depends on current buffer
Commit: https://github.com/vim/vim/commit/32ee627750e8b7b3fa6516b893e72f6e6af54710
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jun 10 14:16:49 2020 +0200
patch 8.2.0943: displaying ^M or ^J depends on current buffer
Problem: Displaying ^M or ^J depends on current buffer.
Solution: Pass the displayed buffer to transchar(). (closes https://github.com/vim/vim/issues/6225)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 10 Jun 2020 14:30:04 +0200 |
parents | 79e10adc821d |
children | cb8b9bf76082 |
comparison
equal
deleted
inserted
replaced
20781:93e66f657101 | 20782:c4bce986c31a |
---|---|
838 transchar_hex(pdest, uc); // <xx> or <xxxx> | 838 transchar_hex(pdest, uc); // <xx> or <xxxx> |
839 outlen = (uc < 0x100) ? 4 : 6; | 839 outlen = (uc < 0x100) ? 4 : 6; |
840 } | 840 } |
841 else | 841 else |
842 { | 842 { |
843 transchar_nonprint(pdest, *p); // ^X | 843 transchar_nonprint(curbuf, pdest, *p); // ^X |
844 outlen = 2; | 844 outlen = 2; |
845 } | 845 } |
846 if (pixel != INVALCOLOR) | 846 if (pixel != INVALCOLOR) |
847 { | 847 { |
848 #if GTK_CHECK_VERSION(3,0,0) | 848 #if GTK_CHECK_VERSION(3,0,0) |