Closed Bug 1489554 Opened Last year Closed Last year

Do not open the autocomplete popup if there's a letter right after the cursor

Categories

(DevTools :: Console, defect, P1)

defect

Tracking

(firefox64 fixed)

RESOLVED FIXED
Firefox 64
Tracking Status
firefox64 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

Details

(Whiteboard: [boogaloo-mvp])

Attachments

(1 file)

**Steps to reproduce**
1. Open the console
2. Enter `soc = 1`
3. Realize you were wrong and wanted to call the variable `doc`.
4. Go to the beginning of the input, remove the `s` and type `d
` instead.
5. Press enter to evaluate

**Expected results**

My `doc` variable is assigned as expected and the console input is cleared.

**Actual results**

Pressing `d` opened the autocomplete popup, (with probably decodeURI being selected), and hitting Enter put it in the input (I now have `decodeURIoc = 1` in the input and have to angrily go back and remove what the console wrongfully did).

---

I think it's safe to not show the popup if there's a alphanumeric character (+ "_" and "$") just after the cursor.
Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Priority: -- → P1
Comment on attachment 9007672 [details]
Bug 1489554 - Do not open the autocomplete popup if there's a letter right after the cursor; r=Honza.

Jan Honza Odvarko [:Honza] has approved the revision.
Attachment #9007672 - Flags: review+
Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a2d23dacc52c
Do not open the autocomplete popup if there's a letter right after the cursor; r=Honza.
Whiteboard: [boogaloo-mvp]
https://hg.mozilla.org/mozilla-central/rev/a2d23dacc52c
Status: ASSIGNED → RESOLVED
Closed: Last year
Resolution: --- → FIXED
Target Milestone: --- → Firefox 64
You need to log in before you can comment on or make changes to this bug.