[jboss-jira] [JBoss JIRA] (WFCORE-1634) Wrong cursor position after deleting all characters in second line
Tomas Hofman (JIRA)
issues at jboss.org
Mon Aug 29 06:24:00 EDT 2016
[ https://issues.jboss.org/browse/WFCORE-1634?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tomas Hofman updated WFCORE-1634:
---------------------------------
Description:
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:
{code}
[standalone at embedded /] /subsystem=datasources/data-source=ExampleDS/connection-
factory[]
{code}
Step 2. - Delete "factory" word using backspace:
{code}
[standalone at embedded /] /subsystem=datasources/data-source=ExampleDS/connection-
[]
{code}
Step 3. - Another backspace:
{code}
[standalone at embedded /] /subsystem=datasources/data-source=ExampleDS/connectio[n]
{code}
while expected is:
{code}
[standalone at embedded /] /subsystem=datasources/data-source=ExampleDS/connection[]
{code}
Step 4. - Another backspace:
{code}
[standalone at embedded /] /subsystem=datasources/data-source=ExampleDS/connecti[]n
{code}
while expected is:
{code}
[standalone at embedded /] /subsystem=datasources/data-source=ExampleDS/connectio[]
{code}
was:
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.
Example:
* Terminal width is 80 characters.
* [] marks a cursor position.
Step 1. - I have expression spreading over two lines like this:
{code}
[standalone at embedded /] /subsystem=datasources/data-source=ExampleDS/connection-
factory[]
{code}
Step 2. - Delete "factory" word using backspace:
{code}
[standalone at embedded /] /subsystem=datasources/data-source=ExampleDS/connection-
[]
{code}
Step 3. - Another backspace:
{code}
[standalone at embedded /] /subsystem=datasources/data-source=ExampleDS/connectio[n]
{code}
while expected is:
{code}
[standalone at embedded /] /subsystem=datasources/data-source=ExampleDS/connection[]
{code}
> Wrong cursor position after deleting all characters in second line
> ------------------------------------------------------------------
>
> Key: WFCORE-1634
> URL: https://issues.jboss.org/browse/WFCORE-1634
> Project: WildFly Core
> Issue Type: Bug
> Components: CLI
> Affects Versions: 3.0.0.Alpha3
> Environment: Fedora 24
> Gnome Terminal 3.20
> Bash 4.3.42
> Reporter: Tomas Hofman
> Assignee: Tomas Hofman
>
> 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:
> {code}
> [standalone at embedded /] /subsystem=datasources/data-source=ExampleDS/connection-
> factory[]
> {code}
> Step 2. - Delete "factory" word using backspace:
> {code}
> [standalone at embedded /] /subsystem=datasources/data-source=ExampleDS/connection-
> []
> {code}
> Step 3. - Another backspace:
> {code}
> [standalone at embedded /] /subsystem=datasources/data-source=ExampleDS/connectio[n]
> {code}
> while expected is:
> {code}
> [standalone at embedded /] /subsystem=datasources/data-source=ExampleDS/connection[]
> {code}
> Step 4. - Another backspace:
> {code}
> [standalone at embedded /] /subsystem=datasources/data-source=ExampleDS/connecti[]n
> {code}
> while expected is:
> {code}
> [standalone at embedded /] /subsystem=datasources/data-source=ExampleDS/connectio[]
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list