fix: set nowrap in buffer instead of on each draw

This commit is contained in:
kiyan
2021-09-12 14:16:12 +02:00
parent 84126d3eb5
commit 4db5dfa320
2 changed files with 1 additions and 3 deletions

View File

@@ -455,9 +455,6 @@ function M.draw(tree, reload)
if cursor and #lines >= cursor[1] then
api.nvim_win_set_cursor(view.get_winnr(), cursor)
end
if cursor then
api.nvim_win_set_option(view.get_winnr(), 'wrap', false)
end
end
function M.render_hl(bufnr)