Improve helper#is_folded()
This commit is contained in:
parent
147bacdba9
commit
b3d954ddc1
@ -1,7 +1,7 @@
|
|||||||
"=============================================================================
|
"=============================================================================
|
||||||
" FILE: autoload/EasyMotion/helper.vim
|
" FILE: autoload/EasyMotion/helper.vim
|
||||||
" AUTHOR: haya14busa
|
" AUTHOR: haya14busa
|
||||||
" Last Change: 16 Feb 2014.
|
" Last Change: 22 Feb 2014.
|
||||||
" License: MIT license {{{
|
" License: MIT license {{{
|
||||||
" Permission is hereby granted, free of charge, to any person obtaining
|
" Permission is hereby granted, free of charge, to any person obtaining
|
||||||
" a copy of this software and associated documentation files (the
|
" a copy of this software and associated documentation files (the
|
||||||
@ -58,9 +58,9 @@ endfunction "}}}
|
|||||||
function! EasyMotion#helper#is_folded(line) "{{{
|
function! EasyMotion#helper#is_folded(line) "{{{
|
||||||
" Return false if g:EasyMotion_skipfoldedline == 1
|
" Return false if g:EasyMotion_skipfoldedline == 1
|
||||||
" and line is start of folded lines
|
" and line is start of folded lines
|
||||||
return foldclosed(a:line) != -1 &&
|
let _foldclosed = foldclosed(a:line)
|
||||||
\ (g:EasyMotion_skipfoldedline == 1 ||
|
return _foldclosed != -1 &&
|
||||||
\ a:line != foldclosed(a:line))
|
\ (g:EasyMotion_skipfoldedline == 1 || a:line != _foldclosed)
|
||||||
endfunction "}}}
|
endfunction "}}}
|
||||||
function! EasyMotion#helper#should_case_sensitive(input, is_search) "{{{
|
function! EasyMotion#helper#should_case_sensitive(input, is_search) "{{{
|
||||||
if !a:is_search
|
if !a:is_search
|
||||||
|
Loading…
x
Reference in New Issue
Block a user