summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorSimon Hauser <Simon-Hauser@outlook.de>2021-01-11 21:02:24 +0100
committerGitHub <noreply@github.com>2021-01-11 21:02:24 +0100
commit07f8f3d34033a806728d6b12833c7bc8ae172e7b (patch)
tree2cfbc7f38cfaf54f2d5ae8a47a2f2a5aa2372ff3 /lua
parentf4fbd88a251cbcdcfb8c60183374e89fd05a2868 (diff)
fix: previewer windows fix (#371)
Diffstat (limited to 'lua')
-rw-r--r--lua/telescope/previewers/buffer_previewer.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/telescope/previewers/buffer_previewer.lua b/lua/telescope/previewers/buffer_previewer.lua
index 354bca0..a35bc42 100644
--- a/lua/telescope/previewers/buffer_previewer.lua
+++ b/lua/telescope/previewers/buffer_previewer.lua
@@ -20,7 +20,7 @@ previewers.file_maker = function(filepath, bufnr, bufname, use_ft_detect, callba
if bufname ~= filepath then
path.read_file_async(filepath, vim.schedule_wrap(function(data)
- vim.api.nvim_buf_set_lines(bufnr, 0, -1, false, vim.split(data, "\n"))
+ vim.api.nvim_buf_set_lines(bufnr, 0, -1, false, vim.split(data, '[\r]?\n'))
if callback then callback(bufnr) end
end))