Maybe something like this
```lua
local function GetEmptyLines(sLE, iLE)
  local sR = ""
  for i = 1, iLE do sR = sR .. sLE end
  return sR
end

local aEOL = {"\r\n", "\r", "\n"}
local iEOL = geany.scintilla("SCI_GETEOLMODE")
local sAdd = GetEmptyLines(aEOL[iEOL + 1], 15)

local iCurPos = geany.caret()
local iL, iC = geany.rowcol(iCurPos)
iCurPos = geany.scintilla("SCI_GETLINEENDPOSITION", iL - 1)
geany.caret(iCurPos)
geany.selection(sAdd)
```
```lua
local function GetEmptyLines(sLE, iLE)
  local sR = ""
  for i = 1, iLE do sR = sR .. sLE end
  return sR
end

local aEOL = {"\r\n", "\r", "\n"}
local iEOL = geany.scintilla("SCI_GETEOLMODE")
local sAdd = GetEmptyLines(aEOL[iEOL + 1], 25)

local sTxt = geany.text()
geany.text(sTxt .. sAdd)
```
?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/discussions/4091#discussioncomment-11464164
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