comparison src/drawline.c @ 24950:18a00b2b9c27 v8.2.3012

patch 8.2.3012: when 'rightleft' is set the line number is drawn reversed Commit: https://github.com/vim/vim/commit/29f0dc3689eafcf7888e06d57d1cf79e62c5c148 Author: Christian Brabandt <cb@256bit.org> Date: Wed Jun 16 19:28:34 2021 +0200 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)
author Bram Moolenaar <Bram@vim.org>
date Wed, 16 Jun 2021 19:30:05 +0200
parents 03492b62d79a
children ac54d215fbec
comparison
equal deleted inserted replaced
24949:0b6693288329 24950:18a00b2b9c27
1119 { 1119 {
1120 char_u *p1, *p2; 1120 char_u *p1, *p2;
1121 int t; 1121 int t;
1122 1122
1123 // like rl_mirror(), but keep the space at the end 1123 // like rl_mirror(), but keep the space at the end
1124 p2 = skiptowhite(extra) - 1; 1124 p2 = skipwhite(extra);
1125 for (p1 = extra; p1 < p2; ++p1, --p2) 1125 p2 = skiptowhite(p2) - 1;
1126 for (p1 = skipwhite(extra); p1 < p2; ++p1, --p2)
1126 { 1127 {
1127 t = *p1; 1128 t = *p1;
1128 *p1 = *p2; 1129 *p1 = *p2;
1129 *p2 = t; 1130 *p2 = t;
1130 } 1131 }