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:
Nate Kane 2015-03-22 21:35:19 +10:00
commit a397b3b549
3 changed files with 54 additions and 1 deletions

View File

@ -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')

View File

@ -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).

View 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