summaryrefslogtreecommitdiff
path: root/src/farsi.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2009-05-16 15:31:32 +0000
committerBram Moolenaar <Bram@vim.org>2009-05-16 15:31:32 +0000
commitaf0167fa3917bcaf4e066a08977068b1964ac78d (patch)
tree8d99a0dc0e3b95b8a9404728841943f843142573 /src/farsi.c
parent8f0b2d46c7020c2ae097c748940f74b3af1383f7 (diff)
downloadvim-git-af0167fa3917bcaf4e066a08977068b1964ac78d.tar.gz
updated for version 7.2-177v7.2.177
Diffstat (limited to 'src/farsi.c')
-rw-r--r--src/farsi.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/farsi.c b/src/farsi.c
index 7fee615f9..271e1a720 100644
--- a/src/farsi.c
+++ b/src/farsi.c
@@ -103,7 +103,8 @@ toF_Xor_X_(c)
case F_HE:
tempc = _HE;
- if (p_ri && (curwin->w_cursor.col+1 < STRLEN(ml_get_curline())))
+ if (p_ri && (curwin->w_cursor.col + 1
+ < (colnr_T)STRLEN(ml_get_curline())))
{
inc_cursor();
@@ -344,7 +345,7 @@ put_curr_and_l_to_X(c)
if (curwin->w_p_rl && p_ri)
return;
- if ( (curwin->w_cursor.col < STRLEN(ml_get_curline())))
+ if ((curwin->w_cursor.col < (colnr_T)STRLEN(ml_get_curline())))
{
if ((p_ri && curwin->w_cursor.col) || !p_ri)
{
@@ -565,7 +566,7 @@ chg_c_to_X_or_X ()
tempc = gchar_cursor();
- if (curwin->w_cursor.col+1 < STRLEN(ml_get_curline()))
+ if (curwin->w_cursor.col + 1 < (colnr_T)STRLEN(ml_get_curline()))
{
inc_cursor();
@@ -594,8 +595,8 @@ chg_l_to_X_orX_ ()
{
int tempc;
- if (!curwin->w_cursor.col &&
- (curwin->w_cursor.col+1 == STRLEN(ml_get_curline())))
+ if (curwin->w_cursor.col != 0 &&
+ (curwin->w_cursor.col + 1 == (colnr_T)STRLEN(ml_get_curline())))
return;
if (!curwin->w_cursor.col && p_ri)
@@ -663,8 +664,8 @@ chg_l_toXor_X ()
{
int tempc;
- if (!curwin->w_cursor.col &&
- (curwin->w_cursor.col+1 == STRLEN(ml_get_curline())))
+ if (curwin->w_cursor.col != 0 &&
+ (curwin->w_cursor.col + 1 == (colnr_T)STRLEN(ml_get_curline())))
return;
if (!curwin->w_cursor.col && p_ri)