On Wed, Nov 11, 2020 at 4:53 AM gar <[email protected]> wrote:
> and what about the case when I want to indent the line cursor is currently
> on w/o selecting it all.
> I can unindent it with shift-tab or ctrl-< - but their counterparts dont
> work.
> this is a big concern for me.
>
Wow. I can see your concern. The indent-body code has these lines:
# New in Leo 6.3.
if sel_1 == sel_2:
c.editCommands.selfInsertCommand(event)
return
This makes absolutely no sense to me. No unit tests fail without these
lines, and without them indent-region works as expected with no selection
range.
My guess, and it's a pure guess, is that the lines above were added
sometime early during the key-handling project and then I forgot about them.
I'll create a new issue, and (probably a new branch), that merely removes
those lines. In the meantime, try commenting them out yourself. Please
report your results. Thanks.
Edward
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/leo-editor/CAMF8tS3nshvLejaaa8mGYDChq%2BX4KuAme78h_ecBXCUAypprYA%40mail.gmail.com.