Mercurial > vim
diff src/undo.c @ 2165:733f0dc510c3
Undo changes that are meant for the Vim 7.3 branch.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sat, 15 May 2010 21:13:04 +0200 |
parents | 32f25c7ae94b |
children | f838615313cd |
line wrap: on
line diff
--- a/src/undo.c +++ b/src/undo.c @@ -242,7 +242,7 @@ u_save(top, bot) } /* - * Save the line "lnum" (used by ":s" and "~" command). + * save the line "lnum" (used by ":s" and "~" command) * The line is replaced, so the new bottom line is lnum + 1. */ int @@ -256,7 +256,7 @@ u_savesub(lnum) } /* - * A new line is inserted before line "lnum" (used by :s command). + * a new line is inserted before line "lnum" (used by :s command) * The line is inserted, so the new bottom line is lnum + 1. */ int @@ -270,7 +270,7 @@ u_inssub(lnum) } /* - * Save the lines "lnum" - "lnum" + nlines (used by delete command). + * save the lines "lnum" - "lnum" + nlines (used by delete command) * The lines are deleted, so the new bottom line is lnum, unless the buffer * becomes empty. */ @@ -1406,9 +1406,10 @@ u_sync(force) /* * ":undolist": List the leafs of the undo tree */ +/*ARGSUSED*/ void ex_undolist(eap) - exarg_T *eap UNUSED; + exarg_T *eap; { garray_T ga; u_header_T *uhp; @@ -1528,9 +1529,10 @@ u_add_time(buf, buflen, tt) /* * ":undojoin": continue adding to the last entry list */ +/*ARGSUSED*/ void ex_undojoin(eap) - exarg_T *eap UNUSED; + exarg_T *eap; { if (curbuf->b_u_newhead == NULL) return; /* nothing changed before */