patch 9.1.1124: No test for 'listchars' "precedes" with double-width char
Problem: No test for 'listchars' "precedes" with double-width char.
Solution: Add a test and fix a typo in code (zeertzjq).
closes: #16675
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/src/drawline.c b/src/drawline.c
index f0a7a92..aabf461 100644
--- a/src/drawline.c
+++ b/src/drawline.c
@@ -3718,7 +3718,7 @@
#endif
// Handle the case where we are in column 0 but not on the first
// character of the line and the user wants us to show us a
- // special character (via 'listchars' option "precedes:<char>".
+ // special character (via 'listchars' option "precedes:<char>").
if (lcs_prec_todo != NUL
&& wp->w_p_list
&& (wp->w_p_wrap ? (wp->w_skipcol > 0 && wlv.row == 0)