Skip to content

Commit

Permalink
PERF: Simplify option fetching
Browse files Browse the repository at this point in the history
  • Loading branch information
LucHermitte committed Aug 28, 2024
1 parent 8de7cbb commit f0f27ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoload/lh/marker.vim
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,7 @@ endfunction
" # Options {{{2
function! s:Option(name, default) " {{{3
if exists('b:'.a:name) | return b:{a:name}
elseif exists('g:'.a:name) | return g:{a:name}
else | return a:default
else | return get(g:, a:name, a:default)
endif
endfunction

Expand Down Expand Up @@ -277,6 +276,7 @@ function! lh#marker#_jump(param) abort " {{{2
else " found! {{{3
return s:DoSelect(emo, emc, delete, position, mode)
endif
" }}}3
endfunction

function! s:DoSelect(emo, emc, delete, position, mode) abort " {{{2
Expand Down

0 comments on commit f0f27ab

Please sign in to comment.