@advice2020, I just use the program and see the repositories from time to time.

> The original script adds separator to the above line where the cursor is 
> located.

The script moves the cursor to the beginning of the line and inserts the text 
and the corresponding line ending character(s). The line ending character is 
appended to the divider separator line before being inserted into the document.
I.e. it looks like: the Home button > type the text or Ctrl+V > Enter.

```lua
iCurPos = geany.scintilla("SCI_POSITIONFROMLINE", iL - 1)
```
`iCurPos` is the position in the document that corresponds to the beginning of 
the current line. `iL` is the line with the cursor. "- 1" because GeanyLua 
counts the line number from 1, but Scintilla counts from 0.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/issues/1384#issuecomment-2494994267
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany-plugins/issues/1384/2494994...@github.com>

Reply via email to