Minor but annoying styling bug

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Minor but annoying styling bug

Stéphane Rollandin
Hello,

There is a minor but irritating bug in parentheses emphasing. To see it,
please load the attached morph (a workspace) in a 5.3 image.

On the line indicated by the arrow, an opening parenthesis that gets
automatically highlighted in bold will stay so instead of reverting to
normal.

To try it: erase that line, type anything, open a parenthesis (and if
you have auto-enclose on as it is by default, remove the closing one
that just appeared) then type a closing parenthesis. The first one is
now bold. Keep typing: it will stay bold.

This rather annoying, because there is no simple way to revert to normal
emphasis: one needs to type another parenthesis and erase the bold one.

This happens only on some lines, and it seems also only if bold text is
already present before and after these lines.

Stef



annoying.morph (54K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Minor but annoying styling bug

marcel.taeumel
Hi Stef,

as a quick workaround: select the text and hit [cmd]+[0] to remove the emphasis.

Best,
Marcel

Am 26.03.2020 11:35:38 schrieb Stéphane Rollandin <[hidden email]>:

Hello,

There is a minor but irritating bug in parentheses emphasing. To see it,
please load the attached morph (a workspace) in a 5.3 image.

On the line indicated by the arrow, an opening parenthesis that gets
automatically highlighted in bold will stay so instead of reverting to
normal.

To try it: erase that line, type anything, open a parenthesis (and if
you have auto-enclose on as it is by default, remove the closing one
that just appeared) then type a closing parenthesis. The first one is
now bold. Keep typing: it will stay bold.

This rather annoying, because there is no simple way to revert to normal
emphasis: one needs to type another parenthesis and erase the bold one.

This happens only on some lines, and it seems also only if bold text is
already present before and after these lines.

Stef



Reply | Threaded
Open this post in threaded view
|

Re: Minor but annoying styling bug

Stéphane Rollandin
> as a quick workaround: select the text and hit [cmd]+[0] to remove the
> emphasis.

What is [cmd] on Windows?

Best,

Stef

Reply | Threaded
Open this post in threaded view
|

Re: Minor but annoying styling bug

marcel.taeumel
Usually it is the [alt] key.

Best,
Marcel

Am 26.03.2020 13:12:56 schrieb Stéphane Rollandin <[hidden email]>:

> as a quick workaround: select the text and hit [cmd]+[0] to remove the
> emphasis.

What is [cmd] on Windows?

Best,

Stef



Reply | Threaded
Open this post in threaded view
|

Re: Minor but annoying styling bug

Stéphane Rollandin
> Usually it is the [alt] key.
But [alt]+[0] does not seem to do anything. Can someone confirm it does
work?

Stef

Reply | Threaded
Open this post in threaded view
|

Re: Minor but annoying styling bug

marcel.taeumel
Maybe enable "Duplicate all CTRL and ALT keys" ... *sigh*

[cmd] + [6-0] is a keyboard shortcut for text styling. I used it, for example, to write the release notes through the Help Browser.

Best,
Marcel

Am 26.03.2020 13:30:46 schrieb Stéphane Rollandin <[hidden email]>:

> Usually it is the [alt] key.
But [alt]+[0] does not seem to do anything. Can someone confirm it does
work?

Stef



Reply | Threaded
Open this post in threaded view
|

Re: Minor but annoying styling bug

Stéphane Rollandin
> Maybe enable "Duplicate all CTRL and ALT keys" ... *sigh*

Nope - this is enabled by default - and disabling it does not change
anything.

Stef

Reply | Threaded
Open this post in threaded view
|

Re: Minor but annoying styling bug

Stéphane Rollandin
In reply to this post by Stéphane Rollandin
> Hello,

>
> There is a minor but irritating bug in parentheses emphasing. To see it,
> please load the attached morph (a workspace) in a 5.3 image.
>
> On the line indicated by the arrow, an opening parenthesis that gets
> automatically highlighted in bold will stay so instead of reverting to
> normal.
>
> To try it: erase that line, type anything, open a parenthesis (and if
> you have auto-enclose on as it is by default, remove the closing one
> that just appeared) then type a closing parenthesis. The first one is
> now bold. Keep typing: it will stay bold.
>
> This rather annoying, because there is no simple way to revert to normal
> emphasis: one needs to type another parenthesis and erase the bold one.
>
> This happens only on some lines, and it seems also only if bold text is
> already present before and after these lines.
>
> Stef
>

Fixed - see attached changesets.

The problem was that #stateArray in TextEditor did not reference the
inst. var. lastParenLocation.

Should I submit this to the inbox?

Stef



TextEditor-stateArrayPut.st (652 bytes) Download Attachment
TextEditor-stateArray.st (522 bytes) Download Attachment
annoying.morph (54K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Minor but annoying styling bug

Nicolas Cellier


Le mer. 1 avr. 2020 à 18:24, Stéphane Rollandin <[hidden email]> a écrit :
> Hello,
>
> There is a minor but irritating bug in parentheses emphasing. To see it,
> please load the attached morph (a workspace) in a 5.3 image.
>
> On the line indicated by the arrow, an opening parenthesis that gets
> automatically highlighted in bold will stay so instead of reverting to
> normal.
>
> To try it: erase that line, type anything, open a parenthesis (and if
> you have auto-enclose on as it is by default, remove the closing one
> that just appeared) then type a closing parenthesis. The first one is
> now bold. Keep typing: it will stay bold.
>
> This rather annoying, because there is no simple way to revert to normal
> emphasis: one needs to type another parenthesis and erase the bold one.
>
> This happens only on some lines, and it seems also only if bold text is
> already present before and after these lines.
>
> Stef
>


Fixed - see attached changesets.

The problem was that #stateArray in TextEditor did not reference the
inst. var. lastParenLocation.

Should I submit this to the inbox?

yes :)


Stef