cargo-spellcheck icon indicating copy to clipboard operation
cargo-spellcheck copied to clipboard

Multiline replacements cause UI distortion

Open drahnr opened this issue 5 years ago • 3 comments

Describe the bug If something produces a multiline replacement, the interactive ui is distorted since the \n is not handled properly.

Currently this can be observed with the upcoming reflow feature in #95 or possibly with a running instance of languagetool server and certain grammar mistakes spanning across multiple lines.

Expected behavior The UI should be able to present such items as a multiline block too.

Pplease complete the following information:

  • System: Fedora
  • Obtained: git
  • Version: #95

drahnr avatar Sep 03 '20 10:09 drahnr

Relevant files are:

  • src/action/mod.rs
  • src/action/interactive.rs
  • src/documentation/chunk.rs

drahnr avatar Sep 09 '20 07:09 drahnr

This is also necessary for displaying multiline replacements for the reflow subcommand.

drahnr avatar Nov 15 '20 06:11 drahnr

Consider using inquire, pending https://github.com/mikaelmello/inquire/issues/96

drahnr avatar Feb 12 '23 10:02 drahnr