aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/message.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-06-09 21:05:57 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-06-09 21:26:24 +0800
commitb8742afb6f46c165e1f279c8099f112def3acc3b (patch)
tree20c0d30c3d3cad1c6e6973e80c8c9583655b1a76 /src/nvim/message.c
parentd6247a575c12f413e21ff5e7e94a86214246579d (diff)
downloadrneovim-b8742afb6f46c165e1f279c8099f112def3acc3b.tar.gz
rneovim-b8742afb6f46c165e1f279c8099f112def3acc3b.tar.bz2
rneovim-b8742afb6f46c165e1f279c8099f112def3acc3b.zip
vim-patch:8.2.5070: unnecessary code
Problem: Unnecessary code. Solution: Remove code that isn't needed. (closes vim/vim#10534) https://github.com/vim/vim/commit/b5f0801b1f043b5cf99380f58eca51b75b3236c7
Diffstat (limited to 'src/nvim/message.c')
-rw-r--r--src/nvim/message.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c
index e3f87ed3e6..8085b90ddd 100644
--- a/src/nvim/message.c
+++ b/src/nvim/message.c
@@ -1880,19 +1880,12 @@ void msg_prt_line(char_u *s, int list)
multispace_pos = 0;
}
attr = HL_ATTR(HLF_0);
- } else if (lead != NULL && s <= lead && curwin->w_p_lcs_chars.lead) {
+ } else if (lead != NULL && s <= lead && curwin->w_p_lcs_chars.lead != NUL) {
c = curwin->w_p_lcs_chars.lead;
attr = HL_ATTR(HLF_0);
} else if (trail != NULL && s > trail) {
c = curwin->w_p_lcs_chars.trail;
attr = HL_ATTR(HLF_0);
- } else if (list && lead != NULL && s <= lead && in_multispace
- && curwin->w_p_lcs_chars.leadmultispace != NULL) {
- c = curwin->w_p_lcs_chars.leadmultispace[multispace_pos++];
- if (curwin->w_p_lcs_chars.leadmultispace[multispace_pos] == NUL) {
- multispace_pos = 0;
- }
- attr = HL_ATTR(HLF_0);
} else if (list && in_multispace
&& curwin->w_p_lcs_chars.multispace != NULL) {
c = curwin->w_p_lcs_chars.multispace[multispace_pos++];