Mercurial > vim
comparison src/undo.c @ 2262:771f21e35ec5 vim73
Minor typo and docs update.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sat, 12 Jun 2010 06:46:44 +0200 |
parents | 646d34788036 |
children | ae2e615a7320 |
comparison
equal
deleted
inserted
replaced
2261:06a7438b3ef7 | 2262:771f21e35ec5 |
---|---|
1277 /* If there is no undo information at all, quit here after deleting any | 1277 /* If there is no undo information at all, quit here after deleting any |
1278 * existing undo file. */ | 1278 * existing undo file. */ |
1279 if (buf->b_u_numhead == 0 && buf->b_u_line_ptr == NULL) | 1279 if (buf->b_u_numhead == 0 && buf->b_u_line_ptr == NULL) |
1280 { | 1280 { |
1281 if (p_verbose > 0) | 1281 if (p_verbose > 0) |
1282 verb_msg((char_u *)_("Skipping undo file write, noting to undo")); | 1282 verb_msg((char_u *)_("Skipping undo file write, nothing to undo")); |
1283 goto theend; | 1283 goto theend; |
1284 } | 1284 } |
1285 | 1285 |
1286 fd = mch_open((char *)file_name, | 1286 fd = mch_open((char *)file_name, |
1287 O_CREAT|O_EXTRA|O_WRONLY|O_EXCL|O_NOFOLLOW, perm); | 1287 O_CREAT|O_EXTRA|O_WRONLY|O_EXCL|O_NOFOLLOW, perm); |