comparison src/charset.c @ 6278:1cdd5804b538 v7.4.473

updated for version 7.4.473 Problem: Cursor movement is incorrect when there is a number column/sign/fold column and 'sbr' is displayed. Solution: Adjust the column for 'sbr'. (Christian Brabandt)
author Bram Moolenaar <bram@vim.org>
date Fri, 10 Oct 2014 15:34:33 +0200
parents 735bd597a8ff
children fcb898dea2bc
comparison
equal deleted inserted replaced
6277:37780ce14190 6278:1cdd5804b538
1182 col += numberextra + mb_added; 1182 col += numberextra + mb_added;
1183 if (col >= (colnr_T)W_WIDTH(wp)) 1183 if (col >= (colnr_T)W_WIDTH(wp))
1184 { 1184 {
1185 col -= W_WIDTH(wp); 1185 col -= W_WIDTH(wp);
1186 numberextra = W_WIDTH(wp) - (numberextra - win_col_off2(wp)); 1186 numberextra = W_WIDTH(wp) - (numberextra - win_col_off2(wp));
1187 if (*p_sbr != NUL && col >= (colnr_T)STRLEN(p_sbr))
1188 col -= (colnr_T)STRLEN(p_sbr);
1187 if (numberextra > 0) 1189 if (numberextra > 0)
1188 col = col % numberextra; 1190 col = col % numberextra;
1189 } 1191 }
1190 if (col == 0 || col + size > (colnr_T)W_WIDTH(wp)) 1192 if (col == 0 || col + size > (colnr_T)W_WIDTH(wp))
1191 { 1193 {