Mercurial > vim
comparison src/indent.c @ 18578:e9e60e0088b5 v8.1.2283
patch 8.1.2283: missed on use of p_sbr
Commit: https://github.com/vim/vim/commit/91e22eb6e09ec384496fccde812072033fd9e616
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Nov 10 00:19:12 2019 +0100
patch 8.1.2283: missed on use of p_sbr
Problem: Missed on use of p_sbr.
Solution: Add missing p_sbr change.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 10 Nov 2019 00:30:04 +0100 |
parents | fe5afdc03bd2 |
children | 788d76db02ac |
comparison
equal
deleted
inserted
replaced
18577:503b8f709e8b | 18578:e9e60e0088b5 |
---|---|
885 } | 885 } |
886 bri = prev_indent + wp->w_p_brishift; | 886 bri = prev_indent + wp->w_p_brishift; |
887 | 887 |
888 // indent minus the length of the showbreak string | 888 // indent minus the length of the showbreak string |
889 if (wp->w_p_brisbr) | 889 if (wp->w_p_brisbr) |
890 bri -= vim_strsize(p_sbr); | 890 bri -= vim_strsize(get_showbreak_value(wp)); |
891 | 891 |
892 // Add offset for number column, if 'n' is in 'cpoptions' | 892 // Add offset for number column, if 'n' is in 'cpoptions' |
893 bri += win_col_off2(wp); | 893 bri += win_col_off2(wp); |
894 | 894 |
895 // never indent past left window margin | 895 // never indent past left window margin |