As i posted in bugzilla there is no crash anymore in current svn. One remaining issue is that undo
does not work as it should. The attached patch addresses this, but it surely affects other parts of
the code (everything that uses grabAndEraseSelection()), so can someone tell if it is safe to apply it?
Short desrciption: eraseSelection() does not create an undo record but cutSelection() does (and the
third argument can be used to supress the copy to clipboard)
Bernhard
Index: src/CutAndPaste.cpp
===================================================================
--- src/CutAndPaste.cpp (revision 18579)
+++ src/CutAndPaste.cpp (working copy)
@@ -410,7 +410,7 @@
if (!cur.selection())
return docstring();
docstring res = grabSelection(cur);
- eraseSelection(cur);
+ cutSelection(cur, false, false);
return res;
}