Mercurial > vim
comparison src/proto/charset.pro @ 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 | 0f7ae8010787 |
children | fe4b6fc7149c |
comparison
equal
deleted
inserted
replaced
20781:93e66f657101 | 20782:c4bce986c31a |
---|---|
3 int buf_init_chartab(buf_T *buf, int global); | 3 int buf_init_chartab(buf_T *buf, int global); |
4 void trans_characters(char_u *buf, int bufsize); | 4 void trans_characters(char_u *buf, int bufsize); |
5 char_u *transstr(char_u *s); | 5 char_u *transstr(char_u *s); |
6 char_u *str_foldcase(char_u *str, int orglen, char_u *buf, int buflen); | 6 char_u *str_foldcase(char_u *str, int orglen, char_u *buf, int buflen); |
7 char_u *transchar(int c); | 7 char_u *transchar(int c); |
8 char_u *transchar_buf(buf_T *buf, int c); | |
8 char_u *transchar_byte(int c); | 9 char_u *transchar_byte(int c); |
9 void transchar_nonprint(char_u *buf, int c); | 10 void transchar_nonprint(buf_T *buf, char_u *charbuf, int c); |
10 void transchar_hex(char_u *buf, int c); | 11 void transchar_hex(char_u *buf, int c); |
11 int byte2cells(int b); | 12 int byte2cells(int b); |
12 int char2cells(int c); | 13 int char2cells(int c); |
13 int ptr2cells(char_u *p); | 14 int ptr2cells(char_u *p); |
14 int vim_strsize(char_u *s); | 15 int vim_strsize(char_u *s); |