Closed Bug 1655958 Opened 4 years ago Closed 4 years ago

Code is highlighted incorrectly when switching to multiline mode with code already written in the console

Categories

(DevTools :: Console, defect)

78 Branch
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1624531

People

(Reporter: henrebotha, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

Steps to reproduce:

  1. Open devtools console.
  2. Write (or paste) some multiline code.
  3. Press Ctrl-B to switch to multiline mode.
  4. Select all the code in the multiline editor, either by clicking & dragging the mouse, or by using a keyboard shortcut such as Ctrl-A.

Actual results:

The code gets selected, but the selection highlighting does not visually cover all the lines of code completely. Depending on the exact input, the selection highlighting might stop partway through a line, or it completely fail to cover the last few lines.

Sometimes the text input cursor might also appear misaligned to the actual text.

Some of these behaviours may also occur when switching back to single-line mode.

Expected results:

The selection highlighting should visually cover all the lines of code.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Console
Product: Firefox → DevTools

Hello Henré, thanks for the report.
I think this was fixed in 79 by Bug 1624531.
If you can try DevEdition or Beta, you should be able to confirm that it's fixed :)

Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE

(In reply to Nicolas Chevobbe [:nchevobbe] from comment #2)

That was fast! Thanks for checking, and sorry for the duplication — I tried but failed to find the existing listing (probably looking in the wrong place).

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: