mirror of
https://github.com/preservim/vim-indent-guides.git
synced 2025-11-12 11:53:46 -05:00
Merge branch 'darkfeline-fix-57'
* darkfeline-fix-57: Update help file Add file for testing when `shiftwidth=0` is used Set size of indent guide to `tabstop` value when `shiftwidth=0` is used
This commit is contained in:
@@ -180,7 +180,11 @@ endfunction
|
|||||||
" plugin is enabled.
|
" plugin is enabled.
|
||||||
"
|
"
|
||||||
function! indent_guides#init_script_vars()
|
function! indent_guides#init_script_vars()
|
||||||
|
if &l:shiftwidth > 0
|
||||||
let s:indent_size = &l:shiftwidth
|
let s:indent_size = &l:shiftwidth
|
||||||
|
else
|
||||||
|
let s:indent_size = &l:tabstop
|
||||||
|
endif
|
||||||
let s:guide_size = indent_guides#calculate_guide_size()
|
let s:guide_size = indent_guides#calculate_guide_size()
|
||||||
let s:hi_normal = indent_guides#capture_highlight('Normal')
|
let s:hi_normal = indent_guides#capture_highlight('Normal')
|
||||||
|
|
||||||
|
|||||||
@@ -260,6 +260,8 @@ Bug reports, feedback, suggestions etc are welcomed.
|
|||||||
soft indentation (thanks @sergey-vlasov).
|
soft indentation (thanks @sergey-vlasov).
|
||||||
* Added option g:|indent_guides_default_mapping| to control whether the
|
* Added option g:|indent_guides_default_mapping| to control whether the
|
||||||
default mapping (<Leader>ig) gets set (thanks @suy).
|
default mapping (<Leader>ig) gets set (thanks @suy).
|
||||||
|
* Set size of indent guide to `tabstop` value when `shiftwidth=0` is used
|
||||||
|
(thanks @darkfeline).
|
||||||
|
|
||||||
1.7~
|
1.7~
|
||||||
* Added way to override the default mapping (thanks @xuhdev).
|
* Added way to override the default mapping (thanks @xuhdev).
|
||||||
|
|||||||
47
test-files/test-ts2sw0et.txt
Normal file
47
test-files/test-ts2sw0et.txt
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
vim:tw=78:ts=2:sw=0:et:nolist
|
||||||
|
|
||||||
|
test
|
||||||
|
test
|
||||||
|
test
|
||||||
|
test
|
||||||
|
test
|
||||||
|
test
|
||||||
|
test
|
||||||
|
test
|
||||||
|
test
|
||||||
|
test
|
||||||
|
test
|
||||||
|
test
|
||||||
|
test
|
||||||
|
test
|
||||||
|
test
|
||||||
|
test
|
||||||
|
test
|
||||||
|
test
|
||||||
|
test
|
||||||
|
test
|
||||||
|
test
|
||||||
|
test
|
||||||
|
|
||||||
|
test
|
||||||
|
test
|
||||||
|
test
|
||||||
|
test
|
||||||
|
test
|
||||||
|
test
|
||||||
|
test
|
||||||
|
test
|
||||||
|
test
|
||||||
|
test
|
||||||
|
test
|
||||||
|
test
|
||||||
|
test
|
||||||
|
test
|
||||||
|
test
|
||||||
|
test
|
||||||
|
test
|
||||||
|
test
|
||||||
|
test
|
||||||
|
test
|
||||||
|
test
|
||||||
|
test
|
||||||
Reference in New Issue
Block a user