fix: set nowrap in prompt buffer (#1499)

- fixes `strdisplaywidth` calculations for `dynamic_preview_title`
This commit is contained in:
Luke Kershaw
2021-11-26 21:43:51 +00:00
committed by GitHub
parent a8e9aa58a4
commit b415e862bf

View File

@@ -2,6 +2,9 @@
vim.opt_local.formatoptions:remove "t" vim.opt_local.formatoptions:remove "t"
vim.opt_local.formatoptions:remove "c" vim.opt_local.formatoptions:remove "c"
-- Don't include `showbreak` when calculating strdisplaywidth
vim.opt_local.wrap = false
-- There's also no reason to enable textwidth here anyway -- There's also no reason to enable textwidth here anyway
vim.opt_local.textwidth = 0 vim.opt_local.textwidth = 0
vim.opt_local.scrollbind = false vim.opt_local.scrollbind = false