vi: clear undo buffer when we change to another file
authorDenys Vlasenko <vda.linux@googlemail.com>
Thu, 3 Apr 2014 10:47:48 +0000 (12:47 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 3 Apr 2014 10:47:48 +0000 (12:47 +0200)
commite7430867a8ad61bbea20d05fc2f9fc5094e211dc
tree37f07ce0e23ef16f78df1c5e1dca0bddc7ff3c2d
parent2c51202aece44d0f72b7d496ac94823e10d08d54
vi: clear undo buffer when we change to another file

function                                             old     new   delta
init_text_buffer                                     156     190     +34
undo_push                                            360     382     +22
count_lines                                           74      72      -2
undo_pop                                             246     222     -24
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/2 up/down: 56/-26)             Total: 30 bytes

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