stevearc / dressing.nvim

Neovim plugin to improve the default vim.ui interfaces
MIT License
1.7k stars 32 forks source link

`vim.ui.select` error creating window when some string sent by the language server contains newline #88

Closed goolord closed 1 year ago

goolord commented 1 year ago

Describe the bug dressing.nvim can fail to create a window when some string the language server sends contains newlines. this bug is also present in https://github.com/nvim-telescope/telescope-ui-select.nvim/issues/19

System information

require("dressing").setup()

To Reproduce Steps to reproduce the behavior:

  1. enter a project that does not build with HLS
  2. wait for haskell language server to send error message + retry option

If possible, provide a minimal file that will trigger the issue (see tests/manual for examples of short ways to call vim.ui.*):

minimal code here

Screenshots vanilla vim.ui.select: image

dressing.nvim vim.ui.select:

image
stevearc commented 1 year ago

Fixed!