Mercurial > vim-lawrencium
comparison plugin/lawrencium.vim @ 111:01edb7c58e0c
Don't touch vim registers holding deletions.
(Fix commit c02360b5f... where typing 'p' after :Hgvdiff would paste a
blank line and not what the user had previously deleted.)
author | Shane Harper <shane@shaneharper.net> |
---|---|
date | Thu, 04 Dec 2014 11:09:19 +1100 |
parents | e66df94ebceb |
children | b051b81cc365 |
comparison
equal
deleted
inserted
replaced
110:e66df94ebceb | 111:01edb7c58e0c |
---|---|
386 " '0read' inserts before the cursor, leaving a blank line which | 386 " '0read' inserts before the cursor, leaving a blank line which |
387 " needs to be deleted... but if there are folds in this thing, we | 387 " needs to be deleted... but if there are folds in this thing, we |
388 " must open them all first otherwise we could delete the whole | 388 " must open them all first otherwise we could delete the whole |
389 " contents of the last fold (since Vim may close them all by | 389 " contents of the last fold (since Vim may close them all by |
390 " default). | 390 " default). |
391 normal! zRGdd | 391 normal! zRG"_dd |
392 endif | 392 endif |
393 endfunction | 393 endfunction |
394 | 394 |
395 let l:all_args = [a:command] + a:000 | 395 let l:all_args = [a:command] + a:000 |
396 let l:hg_command = call(self['GetCommand'], l:all_args, self) | 396 let l:hg_command = call(self['GetCommand'], l:all_args, self) |