Sun 09 Jul 2017 07:58:15 PM UTC, comment #1:
To reproduce, make it so that your terminal is actually 74 columns wide (the number of rows doesn't matter much, 25 is fine). Then run:
src/nano --ignore --nowrap +225,49 src/nano.h
Then type <Enter> and at least six times <Tab>. Then press <Up> and slowly press <Delete> twice. The first <Delete> removes the newline that was newly inserted, and the second <Delete> removes the first of the tabs. But watch what happened on the next row: the "#endi" part of "#endif" disappeared!
Now press ^L. The "#endi" part is restored.
Do the same procedure again, but now press Alt+P before starting to type anything.
Apparently in some cases, when a tab doesn't entirely fit on a row, the remainder of its spaces are spilled onto the next row.
(When using a default terminal size of 80 columns and a default tab size of 8, one will never see this problem. But when the terminal width is not a precise multiple of the tab size, and there are overlong lines which have tabs in them, then one might see it.)
|