mg: fix auto-indent-mode with custom tab widths
authorop <op@openbsd.org>
Mon, 8 Jul 2024 14:33:29 +0000 (14:33 +0000)
committerop <op@openbsd.org>
Mon, 8 Jul 2024 14:33:29 +0000 (14:33 +0000)
commite0c4ea72833a8372f60e408e801051df76e33274
treec47e974f1a8f4f0f277f344927e0db6aacbf5086
parent1f7b1864b987998d338ce25625eb7ceffbf37653
mg: fix auto-indent-mode with custom tab widths

dointent() didn't know about set-tab-width so it was mis-indenting
the lines.  Diff from Mark Willson (mark dot willson at hydrus.org.uk),
with a tiny change by me.
usr.bin/mg/util.c