Skip to content

Commit 8e6d5f7

Browse files
committed
refactor: Prefer single quoted strings
1 parent 425bdc5 commit 8e6d5f7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

autoload/indent_guides.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ function! indent_guides#init_script_vars() abort
191191
let s:hi_normal = indent_guides#capture_highlight('Normal')
192192

193193
" remove 'font=<value>' from the s:hi_normal string (only seems to happen on Vim startup in Windows)
194-
let s:hi_normal = substitute(s:hi_normal, ' font=[A-Za-z0-9:]\+', "", "")
194+
let s:hi_normal = substitute(s:hi_normal, ' font=[A-Za-z0-9:]\+', '', '')
195195

196196
" shortcuts to the global variables - this makes the code easier to read
197197
let s:debug = g:indent_guides_debug
@@ -247,10 +247,10 @@ endfunction
247247
"
248248
function! indent_guides#capture_highlight(group_name) abort
249249
redir => l:output
250-
exe "silent hi " . a:group_name
250+
exe 'silent hi ' . a:group_name
251251
redir END
252252

253-
let l:output = substitute(l:output, "\n", "", "")
253+
let l:output = substitute(l:output, '\n', '', '')
254254
return l:output
255255
endfunction
256256

plugin/indent_guides.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ command! -bar IndentGuidesDisable call s:IndentGuidesDisable()
3535
"
3636
function s:InitVariable(var, value)
3737
if !exists(a:var)
38-
if type(a:value) == type("")
38+
if type(a:value) == type('')
3939
exec 'let ' . a:var . ' = ' . "'" . a:value . "'"
4040
else
4141
exec 'let ' . a:var . ' = ' . a:value

0 commit comments

Comments
 (0)