Mercurial > vim
comparison src/undo.c @ 912:adf6a9dcaded v7.0.038
updated for version 7.0-038
author | vimboss |
---|---|
date | Wed, 12 Jul 2006 19:49:41 +0000 |
parents | 1f3b1021f002 |
children | b2dcb8457067 |
comparison
equal
deleted
inserted
replaced
911:697dec8ec5e7 | 912:adf6a9dcaded |
---|---|
82 #define U_USE_MALLOC 1 | 82 #define U_USE_MALLOC 1 |
83 | 83 |
84 static void u_unch_branch __ARGS((u_header_T *uhp)); | 84 static void u_unch_branch __ARGS((u_header_T *uhp)); |
85 static u_entry_T *u_get_headentry __ARGS((void)); | 85 static u_entry_T *u_get_headentry __ARGS((void)); |
86 static void u_getbot __ARGS((void)); | 86 static void u_getbot __ARGS((void)); |
87 static int undo_allowed __ARGS((void)); | |
88 static int u_savecommon __ARGS((linenr_T, linenr_T, linenr_T)); | 87 static int u_savecommon __ARGS((linenr_T, linenr_T, linenr_T)); |
89 static void u_doit __ARGS((int count)); | 88 static void u_doit __ARGS((int count)); |
90 static void u_undoredo __ARGS((int undo)); | 89 static void u_undoredo __ARGS((int undo)); |
91 static void u_undo_end __ARGS((int did_undo, int absolute)); | 90 static void u_undo_end __ARGS((int did_undo, int absolute)); |
92 static void u_add_time __ARGS((char_u *buf, size_t buflen, time_t tt)); | 91 static void u_add_time __ARGS((char_u *buf, size_t buflen, time_t tt)); |
194 | 193 |
195 /* | 194 /* |
196 * Return TRUE when undo is allowed. Otherwise give an error message and | 195 * Return TRUE when undo is allowed. Otherwise give an error message and |
197 * return FALSE. | 196 * return FALSE. |
198 */ | 197 */ |
199 static int | 198 int |
200 undo_allowed() | 199 undo_allowed() |
201 { | 200 { |
202 /* Don't allow changes when 'modifiable' is off. */ | 201 /* Don't allow changes when 'modifiable' is off. */ |
203 if (!curbuf->b_p_ma) | 202 if (!curbuf->b_p_ma) |
204 { | 203 { |