comparison src/undo.c @ 33:f6033dcbaf31

updated for version 7.0020
author vimboss
date Sun, 24 Oct 2004 19:18:58 +0000
parents 3fc0f57ecb91
children 4d9eabb1396e
comparison
equal deleted inserted replaced
32:41f9fd58cf13 33:f6033dcbaf31
183 #ifdef FEAT_NETBEANS_INTG 183 #ifdef FEAT_NETBEANS_INTG
184 /* 184 /*
185 * Netbeans defines areas that cannot be modified. Bail out here when 185 * Netbeans defines areas that cannot be modified. Bail out here when
186 * trying to change text in a guarded area. 186 * trying to change text in a guarded area.
187 */ 187 */
188 if (usingNetbeans && netbeans_is_guarded(top, bot)) 188 if (usingNetbeans)
189 { 189 {
190 EMSG(_(e_guarded)); 190 if (netbeans_is_guarded(top, bot))
191 return FAIL; 191 {
192 EMSG(_(e_guarded));
193 return FAIL;
194 }
195 if (curbuf->b_p_ro)
196 {
197 EMSG(_(e_nbreadonly));
198 return FAIL;
199 }
192 } 200 }
193 #endif 201 #endif
194 202
195 #ifdef FEAT_AUTOCMD 203 #ifdef FEAT_AUTOCMD
196 /* 204 /*
691 if ((old_flags & UH_EMPTYBUF) && bufempty()) 699 if ((old_flags & UH_EMPTYBUF) && bufempty())
692 curbuf->b_ml.ml_flags |= ML_EMPTY; 700 curbuf->b_ml.ml_flags |= ML_EMPTY;
693 if (old_flags & UH_CHANGED) 701 if (old_flags & UH_CHANGED)
694 changed(); 702 changed();
695 else 703 else
704 #ifdef FEAT_NETBEANS_INTG
705 /* per netbeans undo rules, keep it as modified */
706 if (!isNetbeansModified(curbuf))
707 #endif
696 unchanged(curbuf, FALSE); 708 unchanged(curbuf, FALSE);
697 709
698 /* 710 /*
699 * restore marks from before undo/redo 711 * restore marks from before undo/redo
700 */ 712 */