I added small script:
--[[
Copy selected text to new tab
2017.11.18
--]]
local s = geany.selection();
if (s == "") then
geany.message("No text is selected!");
elseif (s == nil) then
geany.message("There is no open document!");
else
--SCI_GETLEXER
local l = geany.scintilla(4002);
geany.newfile();
geany.selection(s);
--SCI_SETLEXER
geany.scintilla(4001, l);
geany.status("Lua-script: Copy selected text to new tab.");
end
SCI_GETLEXER
works fine, all values (SCLEX_*
) were correctly received, but SCI_SETLEXER
is not working.
Why? It's bug or not implemented?
Xubuntu 17.10 x64, Geany 1.31, I also checked current Git versions.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.