From e0870fb8742d8f4fd4d2fc0ede6b4b6ae1036c38 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 1 Aug 2022 19:13:16 +0300 Subject: [PATCH] * src/xdisp.c (get_visually_first_element): Fix a typo. --- src/xdisp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xdisp.c b/src/xdisp.c index c4abe6e9855..264fbaea59d 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -8846,7 +8846,7 @@ get_visually_first_element (struct it *it) SET_WITH_NARROWED_BEGV (it, bob, string_p ? 0 : - IT_BYTEPOS (*it) < BEGV ? obegv : BEGV, + IT_CHARPOS (*it) < BEGV ? obegv : BEGV, it->narrowed_begv); if (STRINGP (it->string)) -- 2.39.5