Closed Bug 1753751 Opened 3 years ago Closed 3 years ago

After quitting vim, file contents remain visible

Categories

(Firefox Build System :: MozillaBuild, defect)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mhentges, Assigned: mhentges)

References

Details

Attachments

(3 files)

Attached image vim-garbage.png

To reproduce

  1. vi /etc/bash/bash.bashrc
  2. !q
  3. See attached image
Assignee: nobody → mhentges
Blocks: 1739443
Status: NEW → ASSIGNED

Seems to be related to the TERM=cygwin workaround for hg colouring.

We can remove the TERM=cygwin workaround by resolving that issue a different way.

The vim-clearing issue was caused by our changing of $TERM to be
cygwin instead of the upstream default of xterm-256color.

That $TERM change was to avoid an hg bug [1] around detecting the
color mode, which assumed that any terminal that had "xterm" in the
$TERM was coloured with ansi sequences.

Fortunately, that can be worked around by explicitly setting the
color.mode in the mercurial.ini that we ship.

Note that this doesn't break compatibility with Mintty: hg output
appears to still be properly coloured.

[1] https://bz.mercurial-scm.org/show_bug.cgi?id=6640

Depends on D137905

Upstream patch made for HG here.

Pushed by mhentges@mozilla.com:
https://hg.mozilla.org/mozilla-build/rev/c840f94df32a
Fix vim-quitting not fully cleaning up terminal r=glandium

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED

As of mercurial==6.1, the issue with hg coloring not
working with xterm-y Command Prompts has been resolved:
https://bz.mercurial-scm.org/show_bug.cgi?id=6640

Depends on D140350

Pushed by mhentges@mozilla.com: https://hg.mozilla.org/mozilla-build/rev/80cb06733571 Remove hg TERM workaround r=ahochheiden
Product: mozilla.org → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: