Up to [local] / src / usr.bin / mg
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: OPENBSD_4_4
Revision 1.46 / (download) - annotate - [select for diffs], Sat Jun 14 07:38:53 2008 UTC (15 years, 11 months ago) by kjell
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE,
OPENBSD_4_4
Changes since 1.45: +12 -4 lines
Diff to previous 1.45 (colored)
unf*ck undo. No seriously. Reposition the cursor to the start of the redo position, like emacs. This gets us halfway to being emacs-finger-friendly. For the rest, introduce a rptcount variable to count successive invocations of the same function. This means undo will abort properly on C-g, and other such interruptions. This is a lot of diff for a simple-seeming problem. Emacs undo is hard.