After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 788277 - Inserting é adds spaces afterwards
Inserting é adds spaces afterwards
Status: RESOLVED FIXED
Product: gnome-builder
Classification: Other
Component: editor
3.26.x
Other Linux
: Normal major
: ---
Assigned To: GNOME Builder Maintainers
GNOME Builder Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-09-28 09:50 UTC by Alexandre Franke
Modified: 2017-09-28 21:15 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Alexandre Franke 2017-09-28 09:50:13 UTC
I’m typing compose + ', then e to have é in my code. As a result, "é        " is inserted in my code.
Comment 1 Christian Hergert 2017-09-28 18:37:28 UTC
This works for me. Do you have any other input methods that could be mucking things up?
Comment 2 Christian Hergert 2017-09-28 18:37:54 UTC
Also, what language are you in (I tested in C).
Comment 3 Alexandre Franke 2017-09-28 19:06:28 UTC
My desktop is in fr_FR and my keyboard layout is "English (Dvorak)".
Comment 4 Alexandre Franke 2017-09-28 19:39:44 UTC
More tests:
* It happens in .py files but not in .html ones.
* If I go at the beginning of a blank line surrounded by blank lines (like for a new function definition) the first é works as expected but the second one adds **many** spaces resulting in a "éé                             " line.
Comment 5 Alexandre Franke 2017-09-28 19:47:22 UTC
(In reply to Alexandre Franke from comment #4)
> * If I go at the beginning of a blank line surrounded by blank lines (like
> for a new function definition) the first é works as expected but the second
> one adds **many** spaces resulting in a "éé                             "
> line.

With a bit more tests, it turns out the number of spaces added is equal to the number of leading spaces for that line (expect for the above case where it’s adding many spaces with zero leading spaces for the line).
Comment 6 Christian Hergert 2017-09-28 21:03:29 UTC
Looks like some confusion in the python indenter trying to un-indent when e or f is pressed to potentially match else or elif and unindent.
Comment 7 Christian Hergert 2017-09-28 21:15:20 UTC
Fixed in commit 93ba86d3bde7d4bd01541c24ef2ec889abf95add