Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-1634

Wrong cursor position after deleting all characters in second line

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.0.0.Alpha8
    • 3.0.0.Alpha3
    • CLI
    • None

      In CLI, when typing expression that stretches more then one line, and then deleting all characters in the last line (using backspace), cursor appears on wrong position on the previous line (should be on last column, but is on column before the last).

      Further editing messes up the displayed expression, which doesn't reflect the real content of the buffer.

      Reproducing:

      • Terminal width is 80 characters.
      • [] marks a cursor position.

      Step 1. - I have expression spreading over two lines like this:

      [standalone@embedded /] /subsystem=datasources/data-source=ExampleDS/connection-
      factory[]
      

      Step 2. - Delete "factory" word using backspace:

      [standalone@embedded /] /subsystem=datasources/data-source=ExampleDS/connection-
      []
      

      Step 3. - Another backspace:

      [standalone@embedded /] /subsystem=datasources/data-source=ExampleDS/connectio[n]
      

      while expected is:

      [standalone@embedded /] /subsystem=datasources/data-source=ExampleDS/connection[]
      

      Step 4. - Another backspace:

      [standalone@embedded /] /subsystem=datasources/data-source=ExampleDS/connecti[]n
      

      while expected is:

      [standalone@embedded /] /subsystem=datasources/data-source=ExampleDS/connectio[]
      

              thofman Tomas Hofman
              thofman Tomas Hofman
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: