Ticket #2456 (Incorrect restore selection after UNDO)
commitbd3025e7a9ec490bc6adabc34cd0392e93ecd050
authorIlia Maslakov <il.smind@gmail.com>
Sat, 29 Jan 2011 23:40:18 +0000 (29 23:40 +0000)
committerIlia Maslakov <il.smind@gmail.com>
Fri, 4 Feb 2011 16:07:03 +0000 (4 19:07 +0300)
tree7da488f909dd232be543569a98c650af89f4a704
parent94fae2c4c8d825892cd7f7e42aa6ff7f4e0b7aab
Ticket #2456 (Incorrect restore selection after UNDO)

fixed incorrect restore selection after UNDO

    test case:
        1. mcedit new_empty_file
        2. type in 0123456789
        3. F3 5*left F3 - digit '4' is not marked at this point
        4. backspace, ctrl-u - digit '4' is marked now
        5. left, 2*del, 2*ctrl-u - digits '4' and '5' are not marked

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
src/editor/edit-impl.h
src/editor/edit.c