Issue 3709: Buggy autocompletion in small command line is messing with cursor placement

Issue #3709

Description

This test-case is intended for issue #3709 - Buggy autocompletion in small command line is messing with cursor placement.

Sebastian Zartner, sebastianzartner@gmx.de

Steps to reproduce

  1. Open Firebug and enable the Console Panel
  2. Type the following into the Command Line: document.getElementById()
  3. Move the text cursor in between the brackets
  4. Type ab

Expected result

document.getElementById(ab)