Subject: [06c1433906] Possible fix for text widget crashes.

From: dgp <[email-masked]>
Date: Thu, 4 Feb 2016 17:49:39 +0000

---
 generic/tkTextDisp.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c
index 133a7d7..10f6414 100644
--- a/generic/tkTextDisp.c
+++ b/generic/tkTextDisp.c
@@ -4699,6 +4699,11 @@ TextChanged(
         }
     }
 
+    while ((lastPtr != NULL)
+	    && (lastPtr->index.linePtr == index2Ptr->linePtr)) {
+	lastPtr = lastPtr->nextPtr;
+    }
+
     /*
      * Delete all the DLines from firstPtr up to but not including lastPtr.
      */
-- 
cgit v0.12