0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

updated for version 7.0061

This commit is contained in:
Bram Moolenaar
2005-03-18 20:25:31 +00:00
parent a5319aed9b
commit 4317d9b486
25 changed files with 392 additions and 275 deletions

View File

@@ -648,6 +648,13 @@ op_reindent(oap, how)
linenr_T last_changed = 0;
linenr_T start_lnum = curwin->w_cursor.lnum;
/* Don't even try when 'modifiable' is off. */
if (!curbuf->b_p_ma)
{
EMSG(_(e_modifiable));
return;
}
for (i = oap->line_count; --i >= 0 && !got_int; )
{
/* it's a slow thing to do, so give feedback so there's no worry that