vi: move mark[i] pointers if text[] moves after realloc
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 31 Jan 2012 13:10:26 +0000 (14:10 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 31 Jan 2012 13:10:26 +0000 (14:10 +0100)
commit800a9a056a3703b4001bf55ebc30b1c14cf55acc
tree9dd00a98842ae463b8d976d7a3a483eccff080c9
parent7eaa03709b337b586b11c4b9b53c9675f4de690c
vi: move mark[i] pointers if text[] moves after realloc

While at it, optimized :s/find/repl/ a bit

function                                             old     new   delta
text_hole_make                                       120     150     +30
colon                                               2848    2844      -4

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
editors/vi.c