patch 8.1.0179: redundant condition for boundary check
Problem: Redundant condition for boundary check.
Solution: Remove the condition. (Dominique Pelle). Change FALSE to FAIL.
diff --git a/src/undo.c b/src/undo.c
index b3a6276..040ec54 100644
--- a/src/undo.c
+++ b/src/undo.c
@@ -266,10 +266,8 @@
if (undo_off)
return OK;
- if (top > curbuf->b_ml.ml_line_count
- || top >= bot
- || bot > curbuf->b_ml.ml_line_count + 1)
- return FALSE; /* rely on caller to do error messages */
+ if (top >= bot || bot > curbuf->b_ml.ml_line_count + 1)
+ return FAIL; // rely on caller to give an error message
if (top + 2 == bot)
u_saveline((linenr_T)(top + 1));