]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/xdisp.c (overlay_arrows_changed_p): Fix last change.
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 27 Feb 2017 05:06:08 +0000 (00:06 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 27 Feb 2017 05:06:08 +0000 (00:06 -0500)
src/xdisp.c

index a4c3c706552d7f64de03bc1e61832401bc69245d..4e87001abf71805a587cf43ed6544ee5c6cc55c1 100644 (file)
@@ -13358,14 +13358,19 @@ overlay_arrows_changed_p (bool set_redisplay)
       if (!MARKERP (val))
        continue;
       if (! EQ (COERCE_MARKER (val),
+                /* FIXME: Don't we have a problem, using such a global
+                 * "last-position" if the variable is buffer-local?  */
                Fget (var, Qlast_arrow_position))
          || ! (pstr = overlay_arrow_string_or_property (var),
                EQ (pstr, Fget (var, Qlast_arrow_string))))
        {
          struct buffer *buf = XMARKER (val)->buffer;
 
-         if (set_redisplay && buf)
-           bset_redisplay (buf);
+         if (set_redisplay)
+            {
+              if (buf)
+               bset_redisplay (buf);
+            }
          else
            return true;
        }