[dev] [dvtm][bug] Patch for insert-mode bug.

From: Mark Edgar <medgar123_AT_gmail.com>
Date: Tue, 4 Jun 2013 00:12:51 +0200

Hello. It took me quite a few hours to track this one down!

--- 4ab5ed5/vt.c
+++ vt.c
_AT_@ -1151,7 +1151,7 @@ static void put_wc(Vt *t, wchar_t wc)
                        Cell *src = b->curs_row->cells + b->curs_col;
                        Cell *dest = src + width;
                        size_t len = b->cols - b->curs_col - width;
- memmove(dest, src, len);
+ memmove(dest, src, len * sizeof *dest);
                }

                b->curs_row->cells[b->curs_col] = blank_cell;


     -Mark
Received on Tue Jun 04 2013 - 00:12:51 CEST

This archive was generated by hypermail 2.3.0 : Tue Jun 04 2013 - 00:24:09 CEST