Skip to content

Commit

Permalink
Fix clowniness of commit c00f46b
Browse files Browse the repository at this point in the history
Need to keep the "g" flag in the same place as before. Perhaps I
shouldn't be doing this so late:

    commit c00f46b
    Author: Greg Hurrell <[email protected]>
    Date:   Thu Jan 3 02:14:46 2019 +0100
  • Loading branch information
wincent committed Jan 3, 2019
1 parent 0719fd8 commit af6c28c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoload/scalpel.vim
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function! scalpel#substitute(patterns, line1, line2, count) abort
" Avoid unwanted "Backwards range given, OK to swap (y/n)?" messages.
if l:currentline > l:firstline
" Drop c flag.
execute l:firstline . ',' . l:currentline . l:g . '-&ce'
execute l:firstline . ',' . l:currentline . '-&' . l:g . 'ce'
endif
return
endif
Expand All @@ -95,7 +95,7 @@ function! scalpel#substitute(patterns, line1, line2, count) abort
" Loop around to top of range/file and continue.
" Avoid unwanted "Backwards range given, OK to swap (y/n)?" messages.
if l:currentline > l:firstline
execute l:firstline . ',' . l:currentline . l:g . '-&ce'
execute l:firstline . ',' . l:currentline . '-&' .l:g . 'ce'
execute 'set report=' . l:report
endif
endfunction

0 comments on commit af6c28c

Please sign in to comment.