diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-11-22 03:08:29 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-11-22 03:08:29 +0100 |
commit | f951416a8396a54bbbe21de1a8b16716428549f2 (patch) | |
tree | 2903bb024e534d4a4c5004beef72f4dc38583b29 /src/proto | |
parent | 2b84949ad8f247e5d142e2fb1371b3e37567977a (diff) | |
download | vim-git-f951416a8396a54bbbe21de1a8b16716428549f2.tar.gz |
patch 8.1.0542: shiftwidth() does not take 'vartabstop' into accountv8.1.0542
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)
Diffstat (limited to 'src/proto')
-rw-r--r-- | src/proto/edit.pro | 1 | ||||
-rw-r--r-- | src/proto/option.pro | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/proto/edit.pro b/src/proto/edit.pro index 9ba71645b..768af3a48 100644 --- a/src/proto/edit.pro +++ b/src/proto/edit.pro @@ -46,4 +46,5 @@ int bracketed_paste(paste_mode_T mode, int drop, garray_T *gap); void ins_scroll(void); void ins_horscroll(void); int ins_copychar(linenr_T lnum); +colnr_T get_nolist_virtcol(void); /* vim: set ft=c : */ diff --git a/src/proto/option.pro b/src/proto/option.pro index 228036587..b198c7516 100644 --- a/src/proto/option.pro +++ b/src/proto/option.pro @@ -72,6 +72,9 @@ int *tabstop_copy(int *oldts); int tabstop_count(int *ts); int tabstop_first(int *ts); long get_sw_value(buf_T *buf); +long get_sw_value_indent(buf_T *buf); +long get_sw_value_pos(buf_T *buf, pos_T *pos); +long get_sw_value_col(buf_T *buf, colnr_T col); long get_sts_value(void); void find_mps_values(int *initc, int *findc, int *backwards, int switchit); unsigned int get_bkc_value(buf_T *buf); |