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(); }