Skip to content

Commit

Permalink
vcsdiff#s:GetParam(): use UNSET_STRING instead of empty()
Browse files Browse the repository at this point in the history
  • Loading branch information
tomtom committed Dec 7, 2016
1 parent bc5bf54 commit 9e10e15
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions autoload/quickfixsigns/vcsdiff.vim
Expand Up @@ -3,8 +3,8 @@
" @git: http://github.com/tomtom/quickfixsigns_vim/
" @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
" @Created: 2010-05-08.
" @Last Change: 2016-11-13.
" @Revision: 514
" @Last Change: 2016-12-07.
" @Revision: 516

if exists('g:quickfixsigns#vcsdiff#loaded')
finish
Expand Down Expand Up @@ -109,15 +109,15 @@ if !exists('g:quickfixsigns#vcsdiff#revision')
" |g:quickfixsigns#vcsdiff#vcs|.
" Can also be buffer local b:quickfixsigns_vcsdiff_revision or vcs
" specific as g:quickfixsigns#vcsdiff#revision_{type}.
let g:quickfixsigns#vcsdiff#revision = '' "{{{2
let g:quickfixsigns#vcsdiff#revision = s:UNSET_STRING "{{{2
endif


if !exists('g:quickfixsigns#vcsdiff#extra_args')
" Extra arguments.
" Can also be buffer local b:quickfixsigns_vcsdiff_extra_args or vcs
" specific as g:quickfixsigns#vcsdiff#extra_args_{type}.
let g:quickfixsigns#vcsdiff#extra_args = '' "{{{2
let g:quickfixsigns#vcsdiff#extra_args = s:UNSET_STRING "{{{2
endif


Expand Down Expand Up @@ -558,14 +558,14 @@ function! s:GetParam(name, type, default) abort "{{{3
let gt = a:name .'_'. a:type
if exists('g:'. gt)
let gtval = g:{gt}
if !empty(gtval)
if !(gtval is s:UNSET_STRING)
return gtval
endif
endif
let g = a:name
if exists('g:'. g)
let gval = g:{g}
if !empty(gval)
if !(gval is s:UNSET_STRING)
return gval
endif
endif
Expand Down

0 comments on commit 9e10e15

Please sign in to comment.