aboutsummaryrefslogtreecommitdiffstats
path: root/src/indent.c
diff options
context:
space:
mode:
authorEli Zaretskii <[email protected]>2012-12-07 17:28:20 +0200
committerEli Zaretskii <[email protected]>2012-12-07 17:28:20 +0200
commit81d8cc5377be3560177ee576d314fe4331e275c3 (patch)
treeb14e761794b27c4ebae7c6a2655c0592094c6530 /src/indent.c
parent2cec368c81f0056f7d3f4ce9aa247ef56d3053a7 (diff)
Fix bug #13108 introduced by the fix to bug #12930.
src/indent.c (Fvertical_motion): If a display string will be displayed on the left or the right margin, don't consider it as a factor in cursor positioning.
Diffstat (limited to 'src/indent.c')
-rw-r--r--src/indent.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/indent.c b/src/indent.c
index 33322287c9..eb10580654 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -2034,7 +2034,11 @@ whether or not it is currently displayed in some window. */)
const char *s = SSDATA (it.string);
const char *e = s + SBYTES (it.string);
- disp_string_at_start_p = it.string_from_display_prop_p;
+ /* If it.area is anything but TEXT_AREA, we need not bother
+ about the display string, as it doesn't affect cursor
+ positioning. */
+ disp_string_at_start_p =
+ it.string_from_display_prop_p && it.area == TEXT_AREA;
while (s < e)
{
if (*s++ == '\n')