Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions autoload/spelunker.vim
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,7 @@ endfunction

" 処理前のspell設定を取得
function! spelunker#get_current_spell_setting()
redir => spell_setting_capture
silent execute "setlocal spell?"
redir END
let l:spell_setting_capture = execute("setlocal spell?")

" ex) ' spell' -> 'spell'
return substitute(l:spell_setting_capture, '\v(\n|\s)\C', '', 'g')
Expand Down
4 changes: 1 addition & 3 deletions autoload/spelunker/jump.vim
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,7 @@ function s:get_end_of_line(is_search_next)
endfunction

function s:is_enable_wrapscan()
redir => wrapscan_setting_capture
silent execute "set wrapscan?"
redir END
let l:wrapscan_setting_capture = execute("set wrapscan?")

" ex) ' wrapscan' -> 'wrapscan'
let l:wrapscan_setting_capture = substitute(l:wrapscan_setting_capture, '\v(\n|\s)\C', '', 'g')
Expand Down