Skip to content

Commit

Permalink
Merge pull request tommcdo#53 from habamax/master
Browse files Browse the repository at this point in the history
fix: highlighting is lost when colorscheme is changed
  • Loading branch information
tommcdo committed Dec 16, 2020
2 parents 13d3895 + c8ea85e commit 17f1a2c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugin/exchange.vim
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ function! s:get_setting(setting, default)
endfunction

highlight default link ExchangeRegion IncSearch
highlight default link _exchange_region ExchangeRegion

nnoremap <silent> <expr> <Plug>(Exchange) ':<C-u>set operatorfunc=<SID>exchange_set<CR>'.(v:count1 == 1 ? '' : v:count1).'g@'
vnoremap <silent> <Plug>(Exchange) :<C-u>call <SID>exchange_set(visualmode(), 1)<CR>
Expand Down

0 comments on commit 17f1a2c

Please sign in to comment.