@@ -625,6 +625,16 @@ function! s:GetGrepRoot()
625
625
return s: GetGrepRootEx ()[0 ]
626
626
endfunction
627
627
" }}}
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
+ " }}}
628
638
" ChangeDirectoryToGrepRoot {{{
629
639
function ! s: ChangeDirectoryToGrepRoot ()
630
640
if g: EasyGrepRoot != " cwd" && ! s: IsCommandVimgrep ()
@@ -1193,7 +1203,7 @@ function! s:ActivateChoice(choice)
1193
1203
else
1194
1204
" If the user's choice matches a pattern from the file association's
1195
1205
" list, this gives the user the option of choosing that pattern instead
1196
- let choice = s: GrepSetManual (userStr)
1206
+ let choice = s: SetUserGrepPattern (userStr)
1197
1207
if choice == -1
1198
1208
return
1199
1209
elseif choice == s: EasyGrepModeUser
@@ -1723,8 +1733,8 @@ function! s:MapOptionsKeys()
1723
1733
1724
1734
endfunction
1725
1735
" }}}
1726
- " GrepSetManual {{{
1727
- function ! s: GrepSetManual (str)
1736
+ " SetUserGrepPattern {{{
1737
+ function ! s: SetUserGrepPattern (str)
1728
1738
call s: SetGatewayVariables ()
1729
1739
let str = a: str
1730
1740
if s: IsRecursivePattern (str)
@@ -2167,16 +2177,6 @@ function! <sid>ReplaceSelection(wholeword)
2167
2177
return s: ClearGatewayVariables ()
2168
2178
endfunction
2169
2179
" }}}
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
- " }}}
2180
2180
" ReplaceCurrentWord {{{
2181
2181
function ! <sid> ReplaceCurrentWord (wholeword)
2182
2182
call s: SetGatewayVariables ()
0 commit comments