From 4ea96ef32865eabbcd1542a935ec034ca2789e00 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 14 Nov 2023 14:43:18 +0400 Subject: [PATCH] Fix saving custom emoji id in property. --- ui/widgets/fields/input_field.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/widgets/fields/input_field.cpp b/ui/widgets/fields/input_field.cpp index 728a892..b80d519 100644 --- a/ui/widgets/fields/input_field.cpp +++ b/ui/widgets/fields/input_field.cpp @@ -158,7 +158,7 @@ bool IsNewline(QChar ch) { return base::StringViewMid( link, skip, - (index <= skip) ? -1 : (index - skip - 1) + (index <= skip) ? -1 : (index - skip) ).toULongLong(); }