summaryrefslogtreecommitdiff
path: root/src/if_mzsch.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2009-07-09 18:06:49 +0000
committerBram Moolenaar <Bram@vim.org>2009-07-09 18:06:49 +0000
commitcdcaa5892992d556c7469a36b719aefc220f44a6 (patch)
tree7625616f59ead9e862f07c8f005d3fa3392b1ab9 /src/if_mzsch.c
parent13df0fea4b79d5b3184df8c39b077ae0f6163375 (diff)
downloadvim-git-cdcaa5892992d556c7469a36b719aefc220f44a6.tar.gz
updated for version 7.2-226v7.2.226
Diffstat (limited to 'src/if_mzsch.c')
-rw-r--r--src/if_mzsch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/if_mzsch.c b/src/if_mzsch.c
index 1658fe43e..bc3dd6bf5 100644
--- a/src/if_mzsch.c
+++ b/src/if_mzsch.c
@@ -2169,9 +2169,9 @@ set_buffer_line(void *data, int argc, Scheme_Object **argv)
curbuf = savebuf;
raise_vim_exn(_("cannot delete line"));
}
- deleted_lines_mark((linenr_T)n, 1L);
if (buf->buf == curwin->w_buffer)
mz_fix_cursor(n, n + 1, -1);
+ deleted_lines_mark((linenr_T)n, 1L);
curbuf = savebuf;
@@ -2299,9 +2299,9 @@ set_buffer_line_list(void *data, int argc, Scheme_Object **argv)
curbuf = savebuf;
raise_vim_exn(_("cannot delete line"));
}
- deleted_lines_mark((linenr_T)lo, (long)old_len);
if (buf->buf == curwin->w_buffer)
mz_fix_cursor(lo, hi, -old_len);
+ deleted_lines_mark((linenr_T)lo, (long)old_len);
}
curbuf = savebuf;