vi: enable 'dG' command. Closes 11801
authorRon Yorston <rmy@pobox.com>
Sun, 28 Apr 2019 08:10:16 +0000 (09:10 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 28 Apr 2019 15:16:46 +0000 (17:16 +0200)
commit7b93e317c13053e40e76cc5c36404f92d05dd41c
treebbe4eb630d80211237971cddc9b5a188620b2c7b
parent4b49422a08b89bd01023e7b4fa73ab058ee66932
vi: enable 'dG' command. Closes 11801

The 'G' command was omitted from the list of commands that change or
delete whole lines.  Add it in the appropriate places so the 'dG',
'cG' and 'yG' commands work, including in cases where an explicit
line number has been supplied.

function                                             old     new   delta
find_range                                           534     596     +62
.rodata                                           175166  175167      +1
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/0 up/down: 63/0)               Total: 63 bytes

Reported-by: David Kelly <david.kelly@liberica.ch>
Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
editors/vi.c