Skip to content

Commit 84decdb

Browse files
Fix Enter printing "\r" instead of creating a new line. Closes #420
1 parent 1adb0cb commit 84decdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/orgmode/org/mappings.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ function OrgMappings:org_return()
468468
return vim.api.nvim_feedkeys(utils.esc('<CR>'), 'n', true)
469469
end
470470

471-
local rhs = old_mapping.rhs
471+
local rhs = utils.esc(old_mapping.rhs)
472472

473473
if old_mapping.expr > 0 then
474474
rhs = vim.api.nvim_eval(rhs)

0 commit comments

Comments
 (0)