diff options
author | vimboss <devnull@localhost> | 2005-09-29 18:26:07 +0000 |
---|---|---|
committer | vimboss <devnull@localhost> | 2005-09-29 18:26:07 +0000 |
commit | 0bbe40bb9141f54ab5b6cf4f86a88e7984d86282 (patch) | |
tree | b9c63e97ec2826bfeea041afe176a04763dbcfa8 /src/ex_getln.c | |
parent | 6fda85bea383e0d8c11d3c459e189190df5a7e09 (diff) | |
download | vim-0bbe40bb9141f54ab5b6cf4f86a88e7984d86282.tar.gz |
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r-- | src/ex_getln.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c index a3fac10a..2748915b 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -1700,7 +1700,7 @@ cmdline_changed: #ifdef FEAT_RIGHTLEFT if (cmdmsg_rl # ifdef FEAT_ARABIC - || p_arshape + || (p_arshape && !p_tbidi && enc_utf8) # endif ) /* Always redraw the whole command line to fix shaping and @@ -1873,7 +1873,11 @@ set_cmdspos_cursor() set_cmdspos(); if (KeyTyped) + { m = Columns * Rows; + if (m < 0) /* overflow, Columns or Rows at weird value */ + m = MAXCOL; + } else m = MAXCOL; for (i = 0; i < ccline.cmdlen && i < ccline.cmdpos; ++i) @@ -2641,7 +2645,11 @@ put_on_cmdline(str, len, redraw) #endif { if (KeyTyped) + { m = Columns * Rows; + if (m < 0) /* overflow, Columns or Rows at weird value */ + m = MAXCOL; + } else m = MAXCOL; for (i = 0; i < len; ++i) |