Discussion:
Small editor bug
Lindsay Haisley
2013-08-27 17:56:47 UTC
Permalink
There's a small bug in autocompletion in bluefish 2.2.4 rev8028M.

I have an HTML5 document in the editor, with the following text:

<canvas width="64" height="286" id="slide2" onclick="solo('s2')">
</canvas>

I want to add an anchor tag within the <canvas> tags so I place the
cursor in front of "</canvas>" and type "<a", and see a listing of
possible tag pairs, the first (and second) of which is "<a></a>". If I
select either of these with my mouse, or the up/down navigation keys,
and then press the Enter key I get the following:

<a></a</canvas> [final close tag angle bracket missing]

This does NOT happen if:

* I select a tag pair other than <a></a> from the autocompletion help
popup.

* There are one or more spaces between the text entry cursor and
"</canvas>" when I start typing.

* I select "<a></a>" from the autocompletion popup when it first appears
after entering only the first "<" ("<a></a>" is still the first offered
tag completion).

I note also that in Generic HTML language mode, the first offered
autocompletion is '<a href="" >' with no closing tag, and '<a></a>' is
the 2nd option, but the problem with the incomplete closing tag still
happens. If the language mode is HTML5 I get duplicate offerings of
"<a></a>", both of which have this issue.
--
Lindsay Haisley | "Everything works if you let it"
FMP Computer Services |
512-259-1190 | --- The Roadie
http://www.fmp.com |
Lindsay Haisley
2013-08-27 18:13:00 UTC
Permalink
It looks as if this happens with _any_ autocompletion if all but the
closing bracket of the opening tag is typed before selecting an option
from the autocompletion popup and pressing the Enter key to make the
autocompletion happen.
Post by Lindsay Haisley
There's a small bug in autocompletion in bluefish 2.2.4 rev8028M.
<canvas width="64" height="286" id="slide2" onclick="solo('s2')">
</canvas>
I want to add an anchor tag within the <canvas> tags so I place the
cursor in front of "</canvas>" and type "<a", and see a listing of
possible tag pairs, the first (and second) of which is "<a></a>". If I
select either of these with my mouse, or the up/down navigation keys,
<a></a</canvas> [final close tag angle bracket missing]
* I select a tag pair other than <a></a> from the autocompletion help
popup.
* There are one or more spaces between the text entry cursor and
"</canvas>" when I start typing.
* I select "<a></a>" from the autocompletion popup when it first appears
after entering only the first "<" ("<a></a>" is still the first offered
tag completion).
I note also that in Generic HTML language mode, the first offered
autocompletion is '<a href="" >' with no closing tag, and '<a></a>' is
the 2nd option, but the problem with the incomplete closing tag still
happens. If the language mode is HTML5 I get duplicate offerings of
"<a></a>", both of which have this issue.
--
Lindsay Haisley | "Everything works if you let it"
FMP Computer Services |
512-259-1190 | --- The Roadie
http://www.fmp.com |
Olivier Sessink
2013-09-18 13:43:57 UTC
Permalink
Post by Lindsay Haisley
It looks as if this happens with _any_ autocompletion if all but the
closing bracket of the opening tag is typed before selecting an option
from the autocompletion popup and pressing the Enter key to make the
autocompletion happen.
thanks, fixed in revision 8030. Please test!

Sorry that it took so long.

Olivier
--
Bluefish website http://bluefish.openoffice.nl/
Blog http://oli4444.wordpress.com/
Loading...