diff --git a/src/buffer/out/Row.cpp b/src/buffer/out/Row.cpp index e85b113cd7d..7861af50d59 100644 --- a/src/buffer/out/Row.cpp +++ b/src/buffer/out/Row.cpp @@ -985,14 +985,15 @@ uint16_t ROW::size() const noexcept til::CoordType ROW::GetLastNonSpaceColumn() const noexcept { const auto text = GetText(); - const auto beg = text.begin(); - const auto end = text.end(); + const auto beg = text.data(); + const auto end = beg + text.size(); +#pragma warning(suppress : 26429) // Symbol 'it' is never tested for nullness, it can be marked as not_null (f.23). auto it = end; for (; it != beg; --it) { // it[-1] is safe as `it` is always greater than `beg` (loop invariant). - if (til::at(it, -1) != L' ') + if (it[-1] != L' ') { break; } diff --git a/src/buffer/out/lib/bufferout.vcxproj b/src/buffer/out/lib/bufferout.vcxproj index 9362e88ea99..4f32a1d02c1 100644 --- a/src/buffer/out/lib/bufferout.vcxproj +++ b/src/buffer/out/lib/bufferout.vcxproj @@ -32,7 +32,6 @@ - @@ -52,4 +51,4 @@ - + \ No newline at end of file