On Wednesday, November 11, 2020 at 7:17:52 AM UTC-6, Edward K. Ream wrote: 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. >
Alas, auto-indentation does not happen without this ugly hack. I'll have to think carefully about possible solutions. On a happier note, using u.before/afterChangeBody simplifies the indent/unindent-region commands. This work must be done in the ekr-undo branch, because the new methods do not yet exist in devel, or branches based on devel. 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/96ce2373-ef30-4849-9124-4989db26ab11o%40googlegroups.com.
