You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-editors/scite/files/scite-3.0.1-no-lua.patch

17 lines
632 B

diff -Nru 3.0.1.vanilla/scite/src/SciTEProps.cxx 3.0.1/scite/src/SciTEProps.cxx
--- 3.0.1.vanilla/scite/src/SciTEProps.cxx 2011-11-30 19:39:41.059801342 +0100
+++ 3.0.1/scite/src/SciTEProps.cxx 2011-11-30 19:39:53.211835004 +0100
@@ -1702,10 +1702,12 @@
// return the int value of the command name passed in.
int SciTEBase::GetMenuCommandAsInt(SString commandName) {
+#ifndef NO_LUA
int i = IFaceTable::FindConstant(commandName.c_str());
if (i != -1) {
return IFaceTable::constants[i].value;
}
+#endif
// Otherwise we might have entered a number as command to access a "SCI_" command
return commandName.value();
}