patch 9.0.0206: redraw flags are not named specifically
Problem: Redraw flags are not named specifically.
Solution: Prefix "UPD_" to the flags, for UPDate_screen().
diff --git a/src/textformat.c b/src/textformat.c
index eee68f5..36c6945 100644
--- a/src/textformat.c
+++ b/src/textformat.c
@@ -461,7 +461,7 @@
if (!format_only && haveto_redraw)
{
update_topline();
- redraw_curbuf_later(VALID);
+ redraw_curbuf_later(UPD_VALID);
}
}
@@ -840,7 +840,7 @@
if (oap->is_VIsual)
// When there is no change: need to remove the Visual selection
- redraw_curbuf_later(INVERTED);
+ redraw_curbuf_later(UPD_INVERTED);
if ((cmdmod.cmod_flags & CMOD_LOCKMARKS) == 0)
// Set '[ mark at the start of the formatted area
@@ -903,7 +903,7 @@
{
if (oap->is_VIsual)
// When there is no change: need to remove the Visual selection
- redraw_curbuf_later(INVERTED);
+ redraw_curbuf_later(UPD_INVERTED);
if (fex_format(oap->start.lnum, oap->line_count, NUL) != 0)
// As documented: when 'formatexpr' returns non-zero fall back to