~yerinalexey/dotfiles

16b6f65a969338e8a0d04c6ed837d03ae3e89668 — Alexey Yerin 9 months ago a67ca4d
vis: copy without trailing newline
1 files changed, 1 insertions(+), 1 deletions(-)

M vis/visrc.lua
M vis/visrc.lua => vis/visrc.lua +1 -1
@@ 76,7 76,7 @@ vis:map(vis.modes.VISUAL, ",c", function(keys)
	local win = vis.win
	local text = win.file:content(win.selection.range)
	local escaped = string.gsub(text, "'", "'\"'\"'")
	local file = io.popen(string.format("wl-copy '%s'", escaped))
	local file = io.popen(string.format("wl-copy -n '%s'", escaped))
	file:close()
	vis:redraw()
end)