diff --git a/src/helpers.cpp b/src/helpers.cpp index fa731fa5..7d48d387 100644 --- a/src/helpers.cpp +++ b/src/helpers.cpp @@ -845,7 +845,7 @@ void Scroller(Window &w, const string &string, size_t width, size_t &pos) # endif len = 0; std::basic_string::const_iterator b = s.begin(), e = s.end(); - for (std::basic_string::const_iterator it = b+pos; it != e && len < width; it++) + for (std::basic_string::const_iterator it = b+pos; it < e && len < width; it++) { # ifdef _UTF8 len += wcwidth(*it);