aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/textprop.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/textprop.c b/src/textprop.c
index 6c317063d6d..189dd4726e8 100644
--- a/src/textprop.c
+++ b/src/textprop.c
@@ -647,6 +647,10 @@ back past position LIMIT; fail if nothing is found before LIMIT.")
647 if (NULL_INTERVAL_P (i)) 647 if (NULL_INTERVAL_P (i))
648 return limit; 648 return limit;
649 649
650 /* Start with the interval containing the char before point. */
651 if (i->position == XFASTINT (pos))
652 i = previous_interval (i);
653
650 previous = previous_interval (i); 654 previous = previous_interval (i);
651 while (! NULL_INTERVAL_P (previous) && intervals_equal (previous, i) 655 while (! NULL_INTERVAL_P (previous) && intervals_equal (previous, i)
652 && (NILP (limit) 656 && (NILP (limit)
@@ -686,6 +690,10 @@ back past position LIMIT; fail if nothing is found before LIMIT.")
686 if (NULL_INTERVAL_P (i)) 690 if (NULL_INTERVAL_P (i))
687 return limit; 691 return limit;
688 692
693 /* Start with the interval containing the char before point. */
694 if (i->position == XFASTINT (pos))
695 i = previous_interval (i);
696
689 here_val = textget (i->plist, prop); 697 here_val = textget (i->plist, prop);
690 previous = previous_interval (i); 698 previous = previous_interval (i);
691 while (! NULL_INTERVAL_P (previous) 699 while (! NULL_INTERVAL_P (previous)