From 787a2a63b66d9e74f3824d40a8cf8ee82fa9403b Mon Sep 17 00:00:00 2001 From: Cimbali Date: Mon, 20 Jun 2016 19:27:34 +0200 Subject: [PATCH] Use buffer-values introduced in 3a33e22 --- plugin/detectindent.vim | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plugin/detectindent.vim b/plugin/detectindent.vim index d903948..ece17d6 100644 --- a/plugin/detectindent.vim +++ b/plugin/detectindent.vim @@ -140,8 +140,8 @@ fun! DetectIndent() let l:verbose_msg = "Detected tabs only and no spaces" setl noexpandtab if s:GetValue("detectindent_preferred_indent") - let &l:shiftwidth = g:detectindent_preferred_indent - let &l:tabstop = g:detectindent_preferred_indent + let &l:shiftwidth = s:GetValue("detectindent_preferred_indent") + let &l:tabstop = s:GetValue("detectindent_preferred_indent") endif elseif l:has_leading_spaces && ! l:has_leading_tabs @@ -172,12 +172,12 @@ fun! DetectIndent() if s:GetValue("detectindent_preferred_indent") && \ (s:GetValue("detectindent_preferred_expandtab")) setl expandtab - let &l:shiftwidth = g:detectindent_preferred_indent - let &l:softtabstop = g:detectindent_preferred_indent + let &l:shiftwidth = s:GetValue("detectindent_preferred_indent") + let &l:tabstop = s:GetValue("detectindent_preferred_indent") elseif s:GetValue("detectindent_preferred_indent") setl noexpandtab - let &l:shiftwidth = g:detectindent_preferred_indent - let &l:tabstop = g:detectindent_preferred_indent + let &l:shiftwidth = s:GetValue("detectindent_preferred_indent") + let &l:tabstop = s:GetValue("detectindent_preferred_indent") elseif s:GetValue("detectindent_preferred_expandtab") setl expandtab else