auto-indent-mode (only after computing the auto indent.)
tested also by Mikhail (thanks!). ok tb@
-/* $OpenBSD: cmode.c,v 1.17 2019/07/11 18:20:18 lum Exp $ */
+/* $OpenBSD: cmode.c,v 1.18 2022/05/24 16:24:31 op Exp $ */
/*
* This file is in the public domain.
*
{
if (n < 0)
return (FALSE);
+ if (cc_strip_trailp)
+ (void)delwhite(FFRAND, 1);
if (enewline(FFRAND, 1) == FALSE)
return (FALSE);
return (cc_indent(FFRAND, n));
-/* $OpenBSD: util.c,v 1.43 2021/03/01 10:51:14 lum Exp $ */
+/* $OpenBSD: util.c,v 1.44 2022/05/24 16:24:31 op Exp $ */
/* This file is in the public domain. */
nicol |= 0x07;
++nicol;
}
+ (void)delwhite(FFRAND, 1);
if (lnewline() == FALSE || ((
#ifdef NOTAB
curbp->b_flag & BFNOTAB) ? linsert(nicol, ' ') == FALSE : (