Mercurial > vim
comparison src/undo.c @ 697:f08390485cd3 v7.0210
updated for version 7.0210
author | vimboss |
---|---|
date | Wed, 01 Mar 2006 00:01:28 +0000 |
parents | a28f83d37113 |
children | ac005a544e24 |
comparison
equal
deleted
inserted
replaced
696:f0a9ef4db025 | 697:f08390485cd3 |
---|---|
843 curbuf->b_u_curhead = NULL; | 843 curbuf->b_u_curhead = NULL; |
844 } | 844 } |
845 } | 845 } |
846 | 846 |
847 /* | 847 /* |
848 * ":undojoin": continue adding to the last entry list | |
849 */ | |
850 /*ARGSUSED*/ | |
851 void | |
852 ex_undojoin(eap) | |
853 exarg_T *eap; | |
854 { | |
855 if (!curbuf->b_u_synced) | |
856 return; /* already unsynced */ | |
857 if (curbuf->b_u_newhead == NULL) | |
858 return; /* nothing changed before */ | |
859 if (p_ul < 0) | |
860 return; /* no entries, nothing to do */ | |
861 else | |
862 { | |
863 /* Go back to the last entry */ | |
864 curbuf->b_u_curhead = curbuf->b_u_newhead; | |
865 curbuf->b_u_synced = FALSE; /* no entries, nothing to do */ | |
866 } | |
867 } | |
868 | |
869 /* | |
848 * Called after writing the file and setting b_changed to FALSE. | 870 * Called after writing the file and setting b_changed to FALSE. |
849 * Now an undo means that the buffer is modified. | 871 * Now an undo means that the buffer is modified. |
850 */ | 872 */ |
851 void | 873 void |
852 u_unchanged(buf) | 874 u_unchanged(buf) |