When 'formatexpr' evaluates to non-zero fall back to internal formatting, also
for "gq". (James Vega)
diff --git a/src/ops.c b/src/ops.c
index cf83a88..4eef688 100644
--- a/src/ops.c
+++ b/src/ops.c
@@ -4475,7 +4475,10 @@
redraw_curbuf_later(INVERTED);
# endif
- (void)fex_format(oap->start.lnum, oap->line_count, NUL);
+ if (fex_format(oap->start.lnum, oap->line_count, NUL) != 0)
+ /* As documented: when 'formatexpr' returns non-zero fall back to
+ * internal formatting. */
+ op_format(oap, FALSE);
}
int