Skip to content

menu/prompt indicator not rendered if it starts with a newline #707

Open
@maxomatic458

Description

Platform windows 10
Terminal software windows terminal

when the menu marker starts with a "\n", then the characters after that will not be shown on screen.

  1. so the following marker marker: "\nMARKER " will be rendered as \n
  2. when adding a space (or any character) in front of the marker, for example marker: " \nMARKER ", it will be fixed

Steps to reproduce

  1. make the marker of a menu start with "\n", and then trigger a completion

Screenshots/Screencaptures

  1. "\nMARKER "
    grafik
  2. " \nMARKER "
    grafik

i think its happening in this function

pub(crate) fn coerce_crlf(input: &str) -> Cow<str> {

see #696 for more info

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions