changeset 76518:e8252c50e93d

(try_window_id): Increment matrix positions if the buffer's byte count has increased, but not the character count.
author Chong Yidong <cyd@stupidchicken.com>
date Sat, 17 Mar 2007 19:47:13 +0000
parents 2ff5f73cb28e
children 2ce1d66ecddf
files src/xdisp.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Sat Mar 17 19:46:52 2007 +0000
+++ b/src/xdisp.c	Sat Mar 17 19:47:13 2007 +0000
@@ -14898,7 +14898,7 @@
     sync_frame_with_window_matrix_rows (w);
 
   /* Adjust buffer positions in reused rows.  */
-  if (delta)
+  if (delta || delta_bytes)
     increment_matrix_positions (current_matrix,
 				first_unchanged_at_end_vpos + dvpos,
 				bottom_vpos, delta, delta_bytes);