… | |
… | |
911 | rend_t rend = SET_FONT (rstyle, FONTSET (rstyle)->find_font (c)); |
911 | rend_t rend = SET_FONT (rstyle, FONTSET (rstyle)->find_font (c)); |
912 | |
912 | |
913 | // if the character doesn't fit into the remaining columns... |
913 | // if the character doesn't fit into the remaining columns... |
914 | if (expect_false (screen.cur.col > ncol - width && ncol >= width)) |
914 | if (expect_false (screen.cur.col > ncol - width && ncol >= width)) |
915 | { |
915 | { |
|
|
916 | if (screen.flags & Screen_Autowrap) |
|
|
917 | { |
916 | // ... artificially enlargen the previous one |
918 | // ... artificially enlargen the previous one |
917 | c = NOCHAR; |
919 | c = NOCHAR; |
918 | // and try the same character next loop iteration |
920 | // and try the same character next loop iteration |
919 | --str; |
921 | --str; |
|
|
922 | } |
|
|
923 | else |
|
|
924 | screen.cur.col = ncol - width; |
920 | } |
925 | } |
921 | |
926 | |
922 | line->touch (); |
927 | line->touch (); |
923 | |
928 | |
924 | do |
929 | do |