XML auto-complete inserts extra characters

Issue #35 new
Steve Roy created an issue

When typing in the value for an attribute and auto-complete kicks in, hitting Enter to accept a suggested value inserts the selection before the characters already typed instead of replacing them.

Steps to reproduce:

  1. In an xml file, type an attribute for an element, like android:layout_width="".
  2. Place the cursor between the quotes and type 'wr'.
  3. Auto-complete suggests 'wrap_content'. Hit Enter to accept it.

Expected result:

The attribute value 'wrap_content' replaces the 'wr' already typed.

Actual result:

The attribute value is 'wrap_contentwr' (extra 'wr' at end).

Comments (3)

  1. Nestor Hernandez

    Tonight I downloaded the sources with the intention to fix this bug, but I found that the bug is already fixed. Please Radim release the nbm to Plugins Portal

  2. Nestor Hernandez

    This problem is a little strange: I tested with NB 7.3 with no problem there, In NB 8 it ocurrs.

  3. Radim Kubacki
    • I will not release through Plugin Portal. There is AUC hosted at nbandroid.org.
    • I need to check the difference between NB7.3 and NB8.0. Perhaps a regression in 8.0.
  4. Log in to comment