File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ local Hyperlinks = require('orgmode.org.hyperlinks')
7
7
local PriorityState = require (' orgmode.objects.priority_state' )
8
8
local TodoState = require (' orgmode.objects.todo_state' )
9
9
local config = require (' orgmode.config' )
10
+ local constants = require (' orgmode.utils.constants' )
10
11
local ts_utils = require (' nvim-treesitter.ts_utils' )
11
12
local utils = require (' orgmode.utils' )
12
13
@@ -440,7 +441,7 @@ function OrgMappings:handle_return(suffix)
440
441
end
441
442
442
443
if # text_edits > 0 then
443
- vim .lsp .util .apply_text_edits (text_edits , 0 )
444
+ vim .lsp .util .apply_text_edits (text_edits , 0 , constants . default_offset_encoding )
444
445
445
446
vim .fn .cursor (end_row + 2 + (add_empty_line and 1 or 0 ), 0 ) -- +1 for 0 index and +1 for next line
446
447
vim .cmd ([[ startinsert!]] )
Original file line number Diff line number Diff line change
1
+ return {
2
+ default_offset_encoding = ' utf-16' ,
3
+ }
You can’t perform that action at this time.
0 commit comments