Git commit 58728236f9353415ffe8324aca9b2c17b8ef6dda by Christoph Cullmann. Committed on 01/11/2012 at 00:22. Pushed by cullmann into branch 'master'. balance the edit stack in any case M +5 -1 part/script/katecommandlinescript.cpp http://commits.kde.org/kate/58728236f9353415ffe8324aca9b2c17b8ef6dda diff --git a/part/script/katecommandlinescript.cpp b/part/script/katecomman= dlinescript.cpp index d11569f..93e7847 100644 --- a/part/script/katecommandlinescript.cpp +++ b/part/script/katecommandlinescript.cpp @@ -129,7 +129,11 @@ bool KateCommandLineScript::exec(KTextEditor::View *vi= ew, const QString &cmd, QS = if (setView(qobject_cast(view))) { // setView fails if the script cannot be loaded - return callFunction(_cmd, args, msg); + // balance edit stack in any case! + qobject_cast(view)->doc()->pushEditState(); + bool success =3D callFunction(_cmd, args, msg); + qobject_cast(view)->doc()->popEditState(); + return success; } = return false;