vi: fix several instances of major goof: when text grows, text[]
authorDenis Vlasenko <vda.linux@googlemail.com>
Wed, 19 Nov 2008 13:25:14 +0000 (13:25 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Wed, 19 Nov 2008 13:25:14 +0000 (13:25 -0000)
commit4ae1e13d3f4716a35acf6186f5485e53da39829d
tree6a6b72300774220f9c7d914a3ca371af89aa3bc9
parent58a88916b926ffac657bb3c063b9906f324d4d79
vi: fix several instances of major goof: when text grows, text[]
 might get reallocated! We were keeping around pointers to old place...

function                                             old     new   delta
colon                                               3017    3037     +20
char_insert                                          336     354     +18
stupid_insert                                         18      24      +6
string_insert                                         89      94      +5
do_cmd                                              4461    4465      +4
file_insert                                          328     329      +1
text_hole_make                                       134     120     -14
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 6/1 up/down: 54/-14)             Total: 40 bytes
editors/vi.c