summaryrefslogtreecommitdiff
path: root/src/ops.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-04-22 22:33:57 +0000
committerBram Moolenaar <Bram@vim.org>2006-04-22 22:33:57 +0000
commiteb3593b38b7b6b658e93ad05d6caf76d58cc0c35 (patch)
tree39210f19a86e4db2914523b0fde4a5ff9d345c16 /src/ops.c
parent57657d85c6c3d812e99b5e5d5161c07c66ac7dc7 (diff)
downloadvim-git-eb3593b38b7b6b658e93ad05d6caf76d58cc0c35.tar.gz
updated for version 7.0e06v7.0e06
Diffstat (limited to 'src/ops.c')
-rw-r--r--src/ops.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/ops.c b/src/ops.c
index 5122b87e0..00780acd7 100644
--- a/src/ops.c
+++ b/src/ops.c
@@ -3723,11 +3723,10 @@ error:
end:
if (allocated)
- {
vim_free(insert_string);
- if (regname == '=')
- vim_free(y_array);
- }
+ if (regname == '=')
+ vim_free(y_array);
+
/* If the cursor is past the end of the line put it at the end. */
if (gchar_cursor() == NUL
&& curwin->w_cursor.col > 0
@@ -4967,10 +4966,6 @@ do_addsub(command, Prenum1)
--col;
}
- /* truncate to max length of a number */
- if (length >= NUMBUFLEN - 1)
- length = NUMBUFLEN - 2;
-
/*
* If a number was found, and saving for undo works, replace the number.
*/