Skip to content

Commit

Permalink
make letdefault work for any stringable value
Browse files Browse the repository at this point in the history
  • Loading branch information
dag committed Mar 31, 2012
1 parent 7d8ba7d commit 1824d0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion autoload/vim2hs.vim
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function! vim2hs#letdefault(var, val) " {{{
if !exists(a:var)
execute "let " . a:var . " = " . a:val
execute "let " . a:var . " = " . string(a:val)
endif
endfunction " }}}

Expand Down
2 changes: 1 addition & 1 deletion compiler/hlint.vim
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ if exists('current_compiler')
endif
let current_compiler = 'hlint'

call vim2hs#letdefault('g:hlint_args', '"--language=XmlSyntax"')
call vim2hs#letdefault('g:hlint_args', '--language=XmlSyntax')

execute 'CompilerSet makeprg=hlint\ ' . g:hlint_args . '\ %'

Expand Down

0 comments on commit 1824d0a

Please sign in to comment.