Mercurial > vim
changeset 1860:f765f9c139de v7.2.158
updated for version 7.2-158
author | vimboss |
---|---|
date | Wed, 22 Apr 2009 15:45:05 +0000 |
parents | e965cf54d887 |
children | 456ae41254c9 |
files | src/ops.c src/version.c |
diffstat | 2 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ops.c +++ b/src/ops.c @@ -495,10 +495,11 @@ shift_block(oap, amount) block_space_width = non_white_col - oap->start_vcol; /* We will shift by "total" or "block_space_width", whichever is less. */ - shift_amount = (block_space_width < total? block_space_width: total); + shift_amount = (block_space_width < (size_t)total + ? block_space_width : (size_t)total); /* The column to which we will shift the text. */ - destination_col = non_white_col - shift_amount; + destination_col = (colnr_T)(non_white_col - shift_amount); /* Now let's find out how much of the beginning of the line we can * reuse without modification. */