Mercurial > vim
annotate src/proto/undo.pro @ 2236:dc2e5ec0500d vim73
Added the undofile() function. Updated runtime files.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sun, 30 May 2010 18:30:36 +0200 |
parents | aa6412cab544 |
children | 3d0a7beb0d75 |
rev | line source |
---|---|
7 | 1 /* undo.c */ |
2231
aa6412cab544
Various improvements to undo file code to make it more robust.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
2 void u_check __ARGS((int newhead_may_be_NULL)); |
1136 | 3 int u_save_cursor __ARGS((void)); |
4 int u_save __ARGS((linenr_T top, linenr_T bot)); | |
5 int u_savesub __ARGS((linenr_T lnum)); | |
6 int u_inssub __ARGS((linenr_T lnum)); | |
7 int u_savedel __ARGS((linenr_T lnum, long nlines)); | |
8 int undo_allowed __ARGS((void)); | |
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)); |
2214
f8222d1f9a73
Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents:
1136
diff
changeset
|
12 void u_read_undo __ARGS((char_u *name, char_u *hash)); |
1136 | 13 void u_undo __ARGS((int count)); |
14 void u_redo __ARGS((int count)); | |
15 void undo_time __ARGS((long step, int sec, int absolute)); | |
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)); | |
20 void u_clearall __ARGS((buf_T *buf)); | |
21 void u_saveline __ARGS((linenr_T lnum)); | |
22 void u_clearline __ARGS((void)); | |
23 void u_undoline __ARGS((void)); | |
24 void u_blockfree __ARGS((buf_T *buf)); | |
25 int bufIsChanged __ARGS((buf_T *buf)); | |
26 int curbufIsChanged __ARGS((void)); | |
7 | 27 /* vim: set ft=c : */ |