diff src/insdel.c @ 149:538048ae2ab8 r20-3b1

Import from CVS: tag r20-3b1
author cvs
date Mon, 13 Aug 2007 09:36:16 +0200
parents cca96a509cfe
children 59463afc5666
line wrap: on
line diff
--- a/src/insdel.c	Mon Aug 13 09:35:15 2007 +0200
+++ b/src/insdel.c	Mon Aug 13 09:36:16 2007 +0200
@@ -1139,15 +1139,15 @@
 
    GB_ALLOW_PAST_ACCESSIBLE
 
-     The allowable range for the position is the entire buffer
-     (BEG and Z), rather than the accessible portion.  For strings,
-     this flag has no effect.
+     Allow positions to range over the entire buffer (BUF_BEG to BUF_Z),
+     rather than just the accessible portion (BUF_BEGV to BUF_ZV).
+     For strings, this flag has no effect.
 
    GB_COERCE_RANGE
 
-     If the position is outside the allowable range, return
-     the lower or upper bound of the range, whichever is closer
-     to the specified position.
+     If the position is outside the allowable range, return the lower
+     or upper bound of the range, whichever is closer to the specified
+     position.
 
    GB_NO_ERROR_IF_BAD
 
@@ -1198,10 +1198,8 @@
 
   CHECK_INT_COERCE_MARKER (pos);
   ind = XINT (pos);
-  min_allowed = (flags & GB_ALLOW_PAST_ACCESSIBLE) ?
-    BUF_BEG (b) : BUF_BEGV (b);
-  max_allowed = (flags & GB_ALLOW_PAST_ACCESSIBLE) ?
-    BUF_Z (b) : BUF_ZV (b);
+  min_allowed = flags & GB_ALLOW_PAST_ACCESSIBLE ? BUF_BEG (b) : BUF_BEGV (b);
+  max_allowed = flags & GB_ALLOW_PAST_ACCESSIBLE ? BUF_Z   (b) : BUF_ZV   (b);
     
   if (ind < min_allowed || ind > max_allowed)
     {