Mercurial > vim
comparison src/proto/option.pro @ 15062:3a94f7918980 v8.1.0542
patch 8.1.0542: shiftwidth() does not take 'vartabstop' into account
commit https://github.com/vim/vim/commit/f951416a8396a54bbbe21de1a8b16716428549f2
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Nov 22 03:08:29 2018 +0100
patch 8.1.0542: shiftwidth() does not take 'vartabstop' into account
Problem: shiftwidth() does not take 'vartabstop' into account.
Solution: Use the cursor position or a position explicitly passed.
Also make >> and << work better with 'vartabstop'. (Christian
Brabandt)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 22 Nov 2018 03:15:10 +0100 |
parents | cf4d6489c9eb |
children | 55ccc2d353bd |
comparison
equal
deleted
inserted
replaced
15061:0572862c3162 | 15062:3a94f7918980 |
---|---|
70 int tabstop_eq(int *ts1, int *ts2); | 70 int tabstop_eq(int *ts1, int *ts2); |
71 int *tabstop_copy(int *oldts); | 71 int *tabstop_copy(int *oldts); |
72 int tabstop_count(int *ts); | 72 int tabstop_count(int *ts); |
73 int tabstop_first(int *ts); | 73 int tabstop_first(int *ts); |
74 long get_sw_value(buf_T *buf); | 74 long get_sw_value(buf_T *buf); |
75 long get_sw_value_indent(buf_T *buf); | |
76 long get_sw_value_pos(buf_T *buf, pos_T *pos); | |
77 long get_sw_value_col(buf_T *buf, colnr_T col); | |
75 long get_sts_value(void); | 78 long get_sts_value(void); |
76 void find_mps_values(int *initc, int *findc, int *backwards, int switchit); | 79 void find_mps_values(int *initc, int *findc, int *backwards, int switchit); |
77 unsigned int get_bkc_value(buf_T *buf); | 80 unsigned int get_bkc_value(buf_T *buf); |
78 int signcolumn_on(win_T *wp); | 81 int signcolumn_on(win_T *wp); |
79 dict_T *get_winbuf_options(int bufopt); | 82 dict_T *get_winbuf_options(int bufopt); |