Skip to content

Commit 2963de3

Browse files
committed
Move some functions around (no functional changes)
1 parent 9bd9435 commit 2963de3

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

plugin/EasyGrep.vim

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,16 @@ function! s:GetGrepRoot()
625625
return s:GetGrepRootEx()[0]
626626
endfunction
627627
" }}}
628+
" GetCurrentWord {{{
629+
function! s:GetCurrentWord()
630+
return expand("<cword>")
631+
endfunction
632+
" }}}
633+
" GetCurrentSelection {{{
634+
function! s:GetCurrentSelection()
635+
return s:ClearNewline(@")
636+
endfunction
637+
" }}}
628638
" ChangeDirectoryToGrepRoot {{{
629639
function! s:ChangeDirectoryToGrepRoot()
630640
if g:EasyGrepRoot != "cwd" && !s:IsCommandVimgrep()
@@ -1193,7 +1203,7 @@ function! s:ActivateChoice(choice)
11931203
else
11941204
" If the user's choice matches a pattern from the file association's
11951205
" list, this gives the user the option of choosing that pattern instead
1196-
let choice = s:GrepSetManual(userStr)
1206+
let choice = s:SetUserGrepPattern(userStr)
11971207
if choice == -1
11981208
return
11991209
elseif choice == s:EasyGrepModeUser
@@ -1723,8 +1733,8 @@ function! s:MapOptionsKeys()
17231733
17241734
endfunction
17251735
"}}}
1726-
" GrepSetManual {{{
1727-
function! s:GrepSetManual(str)
1736+
" SetUserGrepPattern {{{
1737+
function! s:SetUserGrepPattern(str)
17281738
call s:SetGatewayVariables()
17291739
let str = a:str
17301740
if s:IsRecursivePattern(str)
@@ -2167,16 +2177,6 @@ function! <sid>ReplaceSelection(wholeword)
21672177
return s:ClearGatewayVariables()
21682178
endfunction
21692179
"}}}
2170-
" GetCurrentWord {{{
2171-
function! s:GetCurrentWord()
2172-
return expand("<cword>")
2173-
endfunction
2174-
" }}}
2175-
" GetCurrentSelection {{{
2176-
function! s:GetCurrentSelection()
2177-
return s:ClearNewline(@")
2178-
endfunction
2179-
" }}}
21802180
" ReplaceCurrentWord {{{
21812181
function! <sid>ReplaceCurrentWord(wholeword)
21822182
call s:SetGatewayVariables()

0 commit comments

Comments
 (0)