Skip to content

Commit 5e9f250

Browse files
Do not change indentation of the line if it's not empty.
1 parent e10504b commit 5e9f250

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lua/orgmode/org/indent.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ local function indentexpr()
4343
return noindent_mode()
4444
end
4545

46+
local cur_line = vim.trim(vim.fn.getline(vim.v.lnum))
47+
if cur_line ~= '' then
48+
return -1
49+
end
50+
4651
local prev_line = vim.fn.prevnonblank(vim.v.lnum - 1)
4752
if prev_line <= 0 then
4853
return 0

0 commit comments

Comments
 (0)