diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/textprop.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/textprop.c b/src/textprop.c index 06ae670c47f..db618c7e4c7 100644 --- a/src/textprop.c +++ b/src/textprop.c | |||
| @@ -524,9 +524,10 @@ If the value is non-nil, it is a position greater than POS, never equal.") | |||
| 524 | if (NULL_INTERVAL_P (i)) | 524 | if (NULL_INTERVAL_P (i)) |
| 525 | return Qnil; | 525 | return Qnil; |
| 526 | 526 | ||
| 527 | here_val = textget (prop, i->plist); | 527 | here_val = textget (i->plist, prop); |
| 528 | next = next_interval (i); | 528 | next = next_interval (i); |
| 529 | while (! NULL_INTERVAL_P (next) && EQ (here_val, textget (prop, next->plist))) | 529 | while (! NULL_INTERVAL_P (next) |
| 530 | && EQ (here_val, textget (next->plist, prop))) | ||
| 530 | next = next_interval (next); | 531 | next = next_interval (next); |
| 531 | 532 | ||
| 532 | if (NULL_INTERVAL_P (next)) | 533 | if (NULL_INTERVAL_P (next)) |
| @@ -586,10 +587,10 @@ If the value is non-nil, it is a position less than POS, never equal.") | |||
| 586 | if (NULL_INTERVAL_P (i)) | 587 | if (NULL_INTERVAL_P (i)) |
| 587 | return Qnil; | 588 | return Qnil; |
| 588 | 589 | ||
| 589 | here_val = textget (prop, i->plist); | 590 | here_val = textget (i->plist, prop); |
| 590 | previous = previous_interval (i); | 591 | previous = previous_interval (i); |
| 591 | while (! NULL_INTERVAL_P (previous) | 592 | while (! NULL_INTERVAL_P (previous) |
| 592 | && EQ (here_val, textget (prop, previous->plist))) | 593 | && EQ (here_val, textget (previous->plist, prop))) |
| 593 | previous = previous_interval (previous); | 594 | previous = previous_interval (previous); |
| 594 | if (NULL_INTERVAL_P (previous)) | 595 | if (NULL_INTERVAL_P (previous)) |
| 595 | return Qnil; | 596 | return Qnil; |