Terry J. Reedy <tjre...@udel.edu> added the comment:
The specific bug being fixed here is that wrapped lines before newline are ignored because after if s[pos] == '\n': linecount += 1 current_column = 0 this block if current_column > 0: lines, column = divmod(current_column - 1, linewidth) linecount += lines current_column = column + 1 has no effect. The fix, in the PR, is to put the linecount increment in the \n block before resetting current_column. (Since the column>0 block also has no net effect after \t, I removed it) ---------- title: IDLE: Squeezed lines count ignores window width -> IDLE: Squeezed line count ignores wrapping before newline _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue35208> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com