I found 
[SCI_SCROLLCARET](https://scintilla.org/ScintillaDoc.html#SCI_SCROLLCARET), try 
to add `geany.scintilla("SCI_SCROLLCARET")` to the end.

Also I found 
[SCI_GOTOLINE](https://scintilla.org/ScintillaDoc.html#SCI_GOTOLINE), this way 
will require more changes. For example, [second 
script](https://github.com/geany/geany/discussions/4091#discussioncomment-11628236):
try to replace
```lua
local iLines = geany.height()
local sTxt = geany.text()
geany.text(sTxt .. sAdd)
local iCurPos = geany.rowcol(iLines + 1, 0)
geany.caret(iCurPos)
```
on
```lua
local iLines = geany.height()
local sTxt = geany.text()
geany.text(sTxt .. sAdd)
geany.scintilla("SCI_GOTOLINE", iLines + 1)
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/discussions/4091#discussioncomment-11712457
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/repo-discussions/4091/comments/[email protected]>

Reply via email to