diff options
author | mitchell <none@none> | 2021-06-26 12:52:06 -0400 |
---|---|---|
committer | mitchell <none@none> | 2021-06-26 12:52:06 -0400 |
commit | d76d3040f7fbe2eed89ba0af1411b5950c0ef3ad (patch) | |
tree | b43cad2b5af1fe0deaa1c47e6f6dcd91e2bf8bbd /modules | |
parent | 1f64b73d9e7febad263a119b6591b23cd7ff2717 (diff) |
Append trailing newline to multiple and rectangular selection input for `filter_through()`.
This fixes issues for commands like `tac` (print in reverse).
Diffstat (limited to 'modules')
-rw-r--r-- | modules/textadept/editing.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textadept/editing.lua b/modules/textadept/editing.lua index 4b619ab7..c17d35e9 100644 --- a/modules/textadept/editing.lua +++ b/modules/textadept/editing.lua @@ -624,7 +624,7 @@ function M.filter_through(command) for i = 1, buffer.selections do inout[#inout + 1] = buffer:text_range(buffer.selection_n_start[i], buffer.selection_n_end[i]) end - inout = table.concat(inout, '\n') + inout = table.concat(inout, '\n') .. '\n' end for i = 1, #commands do local p = assert(os.spawn(commands[i]:match('^%s*(.-)%s*$'))) |