mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.3012: when 'rightleft' is set the line number is drawn reversed
Problem: When 'rightleft' is set the line number is sometimes drawn reversed. Solution: Adjust how space is handled. (Christian Brabandt, closes #8389, closes #8391)
This commit is contained in:
committed by
Bram Moolenaar
parent
6bc30b05e6
commit
29f0dc3689
@@ -1121,8 +1121,9 @@ win_line(
|
||||
int t;
|
||||
|
||||
// like rl_mirror(), but keep the space at the end
|
||||
p2 = skiptowhite(extra) - 1;
|
||||
for (p1 = extra; p1 < p2; ++p1, --p2)
|
||||
p2 = skipwhite(extra);
|
||||
p2 = skiptowhite(p2) - 1;
|
||||
for (p1 = skipwhite(extra); p1 < p2; ++p1, --p2)
|
||||
{
|
||||
t = *p1;
|
||||
*p1 = *p2;
|
||||
|
Reference in New Issue
Block a user