Closed sorawee closed 5 months ago
Interesting... on my mac, I use "ESC-[" for this, which (I just tested and) still works fine. I don't really know which one is supposed to work, so this may well still be a bug!
I pushed a fix for this: https://github.com/racket/gui/commit/f7be366a3be1a30dacfc10f8a8bf15b1a5ec2cb5 , but messed up the commit message.
Also, I'm not super confident about this change as I'm not sure the test suites really are covering enough stuff so let me know if you find other ways it is wrong!
It is possible to wrap an expression with parentheses and braces, but not with brackets, when "automatically adjust opening square brackets" is on.
For example, if «....» represents a highlighted region, then if we have:
After pressing
(
,{
, andctrl-[
, we obtain:and
The last one is undesirable.
Note that I used
ctrl-[
because "automatically adjust opening square brackets" is on, which makes[
act like(
in this context.