Mercurial > vim
annotate src/proto/undo.pro @ 2760:7fb8cdb9cb25 v7.3.156
updated for version 7.3.156
Problem: Tty names possibly left unterminated.
Solution: Use vim_strncpy() instead of strncpy().
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Mon, 11 Apr 2011 14:24:37 +0200 |
parents | 88751831fa0a |
children | 21b0a39d13ed |
rev | line source |
---|---|
7 | 1 /* undo.c */ |
1136 | 2 int u_save_cursor __ARGS((void)); |
3 int u_save __ARGS((linenr_T top, linenr_T bot)); | |
4 int u_savesub __ARGS((linenr_T lnum)); | |
5 int u_inssub __ARGS((linenr_T lnum)); | |
6 int u_savedel __ARGS((linenr_T lnum, long nlines)); | |
7 int undo_allowed __ARGS((void)); | |
2394
a3aca345aafa
Add the 'undoreload' option to be able to undo a file reload.
Bram Moolenaar <bram@vim.org>
parents:
2289
diff
changeset
|
8 int u_savecommon __ARGS((linenr_T top, linenr_T bot, linenr_T newbot, int reload)); |
2214
f8222d1f9a73
Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents:
1136
diff
changeset
|
9 void u_compute_hash __ARGS((char_u *hash)); |
2236
dc2e5ec0500d
Added the undofile() function. Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
2231
diff
changeset
|
10 char_u *u_get_undo_file_name __ARGS((char_u *buf_ffname, int reading)); |
dc2e5ec0500d
Added the undofile() function. Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
2231
diff
changeset
|
11 void u_write_undo __ARGS((char_u *name, int forceit, buf_T *buf, char_u *hash)); |
2238
3d0a7beb0d75
Made reading/writing undo info a bit more robust.
Bram Moolenaar <bram@vim.org>
parents:
2236
diff
changeset
|
12 void u_read_undo __ARGS((char_u *name, char_u *hash, char_u *orig_name)); |
1136 | 13 void u_undo __ARGS((int count)); |
14 void u_redo __ARGS((int count)); | |
2281
e41433ea71df
Added ":earlier 1f" and ":later 1f".
Bram Moolenaar <bram@vim.org>
parents:
2280
diff
changeset
|
15 void undo_time __ARGS((long step, int sec, int file, int absolute)); |
1136 | 16 void u_sync __ARGS((int force)); |
17 void ex_undolist __ARGS((exarg_T *eap)); | |
18 void ex_undojoin __ARGS((exarg_T *eap)); | |
19 void u_unchanged __ARGS((buf_T *buf)); | |
2482
88751831fa0a
When undoing a reload, move the cursor to the first changed line.
Bram Moolenaar <bram@vim.org>
parents:
2394
diff
changeset
|
20 void u_find_first_changed __ARGS((void)); |
2281
e41433ea71df
Added ":earlier 1f" and ":later 1f".
Bram Moolenaar <bram@vim.org>
parents:
2280
diff
changeset
|
21 void u_update_save_nr __ARGS((buf_T *buf)); |
1136 | 22 void u_clearall __ARGS((buf_T *buf)); |
23 void u_saveline __ARGS((linenr_T lnum)); | |
24 void u_clearline __ARGS((void)); | |
25 void u_undoline __ARGS((void)); | |
26 void u_blockfree __ARGS((buf_T *buf)); | |
27 int bufIsChanged __ARGS((buf_T *buf)); | |
28 int curbufIsChanged __ARGS((void)); | |
2280
941ff1cd317a
Add file save counter to undo information. Add undotree() function.
Bram Moolenaar <bram@vim.org>
parents:
2238
diff
changeset
|
29 void u_eval_tree __ARGS((u_header_T *first_uhp, list_T *list)); |
7 | 30 /* vim: set ft=c : */ |