[Github-comments] [geany/geany-plugins] [geanylua] geany.scintilla() does not work with SCI_SETLEXER (#646)
Skif-off
notifications at xxxxx
Sat Nov 18 03:51:51 UTC 2017
I added small script:
```lua
--[[
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 or view it on GitHub:
https://github.com/geany/geany-plugins/issues/646
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20171118/0b56e459/attachment.html>
More information about the Github-comments
mailing list