1
0
mirror of https://github.com/dschmenk/PLASMA.git synced 2024-10-06 01:55:47 +00:00

simplify indent/undent code

This commit is contained in:
David Schmenk 2019-12-17 08:11:07 -08:00
parent f937e8265e
commit 3ce76f7308

View File

@ -1438,10 +1438,6 @@ def editmode#0
is keytab
if flags & insmode
indentsel
else
undentsel
fin
if not (flags & selection)
cursoff
if not ^(txtlinbuf=>[cursrow])
curshpos((curscol + 2) & $FE)
@ -1449,11 +1445,10 @@ def editmode#0
autoindent(txtlinbuf=>[cursrow])
fin
curson
fin
break
fin
is keydetab
undentsel
if not (flags & selection)
cursoff
if not ^(txtlinbuf=>[cursrow])
curshpos((curscol - 2) & $FFFE)
@ -1461,7 +1456,6 @@ def editmode#0
autoindent(txtlinbuf=>[cursrow])
fin
curson
fin
break
is keyctrly
flags = flags ^ insmode