summaryrefslogtreecommitdiff
path: root/src/memline.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2007-05-06 14:25:46 +0000
committerBram Moolenaar <Bram@vim.org>2007-05-06 14:25:46 +0000
commit6b803a739fdf489c9dc2f91ea97a90efe053043a (patch)
tree83492546db16a1a5440d71caedeb029c7ecb8009 /src/memline.c
parent17e79197d5c2834cbe1c7b33f3770fe30f220ba9 (diff)
downloadvim-git-6b803a739fdf489c9dc2f91ea97a90efe053043a.tar.gz
updated for version 7.1a
Diffstat (limited to 'src/memline.c')
-rw-r--r--src/memline.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/memline.c b/src/memline.c
index cd39e0617..5015f4926 100644
--- a/src/memline.c
+++ b/src/memline.c
@@ -2570,7 +2570,7 @@ ml_append_int(buf, lnum, line, len, newfile, mark)
if (lineadd)
{
--(buf->b_ml.ml_stack_top);
- /* fix line count for rest of blocks in the stack */
+ /* fix line count for rest of blocks in the stack */
ml_lineadd(buf, lineadd);
/* fix stack itself */
buf->b_ml.ml_stack[buf->b_ml.ml_stack_top].ip_high +=
@@ -2873,12 +2873,12 @@ ml_delete_int(buf, lnum, message)
mf_put(mfp, hp, TRUE, FALSE);
buf->b_ml.ml_stack_top = stack_idx; /* truncate stack */
- /* fix line count for rest of blocks in the stack */
- if (buf->b_ml.ml_locked_lineadd)
+ /* fix line count for rest of blocks in the stack */
+ if (buf->b_ml.ml_locked_lineadd != 0)
{
ml_lineadd(buf, buf->b_ml.ml_locked_lineadd);
buf->b_ml.ml_stack[buf->b_ml.ml_stack_top].ip_high +=
- buf->b_ml.ml_locked_lineadd;
+ buf->b_ml.ml_locked_lineadd;
}
++(buf->b_ml.ml_stack_top);
@@ -3208,7 +3208,7 @@ ml_new_ptr(mfp)
* The stack is updated to lead to the locked block. The ip_high field in
* the stack is updated to reflect the last line in the block AFTER the
* insert or delete, also if the pointer block has not been updated yet. But
- * if if ml_locked != NULL ml_locked_lineadd must be added to ip_high.
+ * if ml_locked != NULL ml_locked_lineadd must be added to ip_high.
*
* return: NULL for failure, pointer to block header otherwise
*/
@@ -3265,11 +3265,11 @@ ml_find_line(buf, lnum, action)
buf->b_ml.ml_flags & ML_LOCKED_POS);
buf->b_ml.ml_locked = NULL;
- /*
- * if lines have been added or deleted in the locked block, need to
- * update the line count in pointer blocks
- */
- if (buf->b_ml.ml_locked_lineadd)
+ /*
+ * If lines have been added or deleted in the locked block, need to
+ * update the line count in pointer blocks.
+ */
+ if (buf->b_ml.ml_locked_lineadd != 0)
ml_lineadd(buf, buf->b_ml.ml_locked_lineadd);
}