]> git.lyx.org Git - lyx.git/blobdiff - src/factory.cpp
Do not overwrite read-only files. We now move the file to the backup directory and...
[lyx.git] / src / factory.cpp
index d763e52f5becb22227881dd8c4b3e52e61f41672..5796edb1d5afae4e97fdd101c008aebe45d7fd01 100644 (file)
@@ -210,6 +210,12 @@ Inset * createInsetHelper(Buffer * buf, FuncRequest const & cmd)
                case LFUN_PREVIEW_INSERT:
                        return new InsetPreview(buf);
 
+               case LFUN_SCRIPT_INSERT: {
+                       InsetScriptParams isp;
+                       InsetScript::string2params("script script " + to_utf8(cmd.argument()), isp);
+                       return new InsetScript(buf, isp);
+               }
+
                case LFUN_INSET_INSERT: {
                        string const name = cmd.getArg(0);
                        InsetCode code = insetCode(name);