[Bug 6158] New: readline may wrap prompts poorly

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Thu Jun 20 15:17:32 UTC 2019


https://bz.mercurial-scm.org/show_bug.cgi?id=6158

            Bug ID: 6158
           Summary: readline may wrap prompts poorly
           Product: Mercurial
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: UNCONFIRMED
          Severity: feature
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla at mercurial-scm.org
          Reporter: hg at pewpew.net
                CC: mercurial-devel at mercurial-scm.org

Some combination of readline version (I'm using libreadline7) and terminal (I'm
using rxvt-unicode, but users of gnome-terminal have also reported issues) may
poorly wrap the last line of the prompt we pass to readline. Here's an example
on a 60-column-wide window:

```
tool vim_with_markers (for pattern some/long/dir/name/that/d
oes/not/work/well/with/readline/file.txt) can't handle binar
y
tool meld can't handle binary
tool vim_with_markers can't handle binary
tool internal:merge3 can't handle binary
tool merge can't handle binary
no tool found to merge some/long/dir/name/that/does/not/work
/well/with/readline/file.txt
 rev], or leave (u)nresolved for some/long/dir/name/that/do
s/not/work/well/with/readline/file.txt?
```

Originally, that prompt was supposed to be:

```
tool vim_with_markers (for pattern
some/long/dir/name/that/does/not/work/well/with/readline/file.txt) can't handle
binary
tool meld can't handle binary
tool vim_with_markers can't handle binary
tool internal:merge3 can't handle binary
tool merge can't handle binary
no tool found to merge
some/long/dir/name/that/does/not/work/well/with/readline/file.txt
keep (l)ocal [working copy], take (o)ther [merge rev], or leave (u)nresolved
for some/long/dir/name/that/does/not/work/well/with/readline/file.txt
```

I'm planning on working on a fix.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list