Fix space
This commit is contained in:
parent
7c84e7a940
commit
a48093b2d3
@ -165,6 +165,7 @@ local function parse_brace_range(brace_range)
|
|||||||
local brace_range_param = ''
|
local brace_range_param = ''
|
||||||
local flush_brace_range_param = function()
|
local flush_brace_range_param = function()
|
||||||
if #brace_range_param > 0 then
|
if #brace_range_param > 0 then
|
||||||
|
brace_range_param = string.gsub(brace_range_param , '^%s*(.-)%s*$', '%1')
|
||||||
table.insert(brace_range.params, brace_range_param)
|
table.insert(brace_range.params, brace_range_param)
|
||||||
brace_range_param = ''
|
brace_range_param = ''
|
||||||
end
|
end
|
||||||
@ -289,7 +290,7 @@ local function unwrap_brace_range(brace_range)
|
|||||||
line = line .. brace_range.suffix
|
line = line .. brace_range.suffix
|
||||||
|
|
||||||
vim.fn.setline(brace_range.row1, line)
|
vim.fn.setline(brace_range.row1, line)
|
||||||
vim.fn.execute(string.format('%d,%dd_', brace_range.row1 + 1, brace_range.row2), true)
|
vim.fn.execute(string.format('%d,%dd_', brace_range.row1 + 1, brace_range.row2))
|
||||||
end
|
end
|
||||||
|
|
||||||
local function reflow()
|
local function reflow()
|
||||||
|
Loading…
Reference in New Issue
Block a user