Lindsay Haisley
2013-08-27 17:56:47 UTC
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.
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 | "Everything works if you let it"
FMP Computer Services |
512-259-1190 | --- The Roadie
http://www.fmp.com |