From 5fcb1da81f0df1fbcfbbcb596bcf164b00edf656 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Sat, 2 Apr 2022 12:02:50 +0800 Subject: [PATCH] revert(highlight.vim): revert E725 --- autoload/SpaceVim/plugins/highlight.vim | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/autoload/SpaceVim/plugins/highlight.vim b/autoload/SpaceVim/plugins/highlight.vim index 6229995c2..9e72cf71a 100644 --- a/autoload/SpaceVim/plugins/highlight.vim +++ b/autoload/SpaceVim/plugins/highlight.vim @@ -27,7 +27,7 @@ let s:hi_range_index = 0 " }}} " transient_state API func: logo {{{ -function! s:range_logo() abort dict +function! s:range_logo() abort let line = getline(3) let range = s:current_range let index = '[' . (s:index + 1) . '/' . len(s:cursor_stack) . ']' @@ -102,7 +102,7 @@ function! s:hi() abort endfor endfunction -function! s:init() abort dict +function! s:init() abort call s:hi() let s:current_range = 'Display' let [s:cursor_stack, s:index] = SpaceVim#plugins#iedit#paser(line('w0'), line('w$'), s:current_match, 0) @@ -226,7 +226,7 @@ endfunction " }}} " key binding: R reset_range {{{ -function! s:reset_range() abort dict +function! s:reset_range() abort let s:current_range = 'Display' let [s:cursor_stack, s:index] = SpaceVim#plugins#iedit#paser(line('w0'), line('w$'), s:current_match, 0) call s:clear_highlight() @@ -235,7 +235,7 @@ endfunction "}}} " key binding: n next_item {{{ -function! s:next_item() abort dict +function! s:next_item() abort if s:index == len(s:cursor_stack) - 1 let s:index = 0 else @@ -247,7 +247,7 @@ endfunction " }}} " key binding: r change_range {{{ -function! s:change_range() abort dict +function! s:change_range() abort if s:current_range ==# 'Display' let s:current_range = 'Buffer' let [s:cursor_stack, s:index] = SpaceVim#plugins#iedit#paser(1, line('$'), s:current_match, 0) @@ -274,13 +274,13 @@ endfunction " }}} " key binding: e iedit {{{ -function! s:iedit() abort dict +function! s:iedit() abort call SpaceVim#plugins#iedit#start() endfunction " }}} " key binding: N/p previous_item {{{ -function! s:previous_item() abort dict +function! s:previous_item() abort if s:index == 0 let s:index = len(s:cursor_stack) - 1 else @@ -292,13 +292,13 @@ endfunction " }}} " key binding: b search_buffers {{{ -function! s:search_buffers() abort dict +function! s:search_buffers() abort call SpaceVim#plugins#flygrep#open({'input' : s:current_match, 'files':'@buffers'}) endfunction " }}} " key binding: / search_project {{{ -function! s:search_project() abort dict +function! s:search_project() abort call SpaceVim#plugins#flygrep#open({'input' : s:current_match}) endfunction " }}} @@ -333,7 +333,7 @@ endfunction " }}} " key binding: Tab toggle_item {{{ -function! s:toggle_item() abort dict +function! s:toggle_item() abort endfunction " }}}