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:
commit
a397b3b549
@ -180,7 +180,11 @@ endfunction
|
||||
" plugin is enabled.
|
||||
"
|
||||
function! indent_guides#init_script_vars()
|
||||
if &l:shiftwidth > 0
|
||||
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:hi_normal = indent_guides#capture_highlight('Normal')
|
||||
|
||||
|
@ -260,6 +260,8 @@ Bug reports, feedback, suggestions etc are welcomed.
|
||||
soft indentation (thanks @sergey-vlasov).
|
||||
* Added option g:|indent_guides_default_mapping| to control whether the
|
||||
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~
|
||||
* 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
|
Loading…
Reference in New Issue
Block a user