… | |
… | |
2780 | } |
2780 | } |
2781 | |
2781 | |
2782 | // scr_add_lines only works for nlines <= nrow - 1. |
2782 | // scr_add_lines only works for nlines <= nrow - 1. |
2783 | if (nlines >= nrow - 1) |
2783 | if (nlines >= nrow - 1) |
2784 | { |
2784 | { |
|
|
2785 | if (!(SHOULD_INVOKE (HOOK_ADD_LINES) |
2785 | if (!HOOK_INVOKE ((this, HOOK_ADD_LINES, DT_WCS_LEN, buf, str - buf, DT_END))) |
2786 | && HOOK_INVOKE ((this, HOOK_ADD_LINES, DT_WCS_LEN, buf, str - buf, DT_END)))) |
2786 | scr_add_lines (buf, str - buf, nlines); |
2787 | scr_add_lines (buf, str - buf, nlines); |
2787 | |
2788 | |
2788 | nlines = 0; |
2789 | nlines = 0; |
2789 | str = buf; |
2790 | str = buf; |
2790 | eol = str + min (ncol, UBUFSIZ); |
2791 | eol = str + min (ncol, UBUFSIZ); |
… | |
… | |
2805 | |
2806 | |
2806 | seq_begin = cmdbuf_ptr; |
2807 | seq_begin = cmdbuf_ptr; |
2807 | ch = next_char (); |
2808 | ch = next_char (); |
2808 | } |
2809 | } |
2809 | |
2810 | |
|
|
2811 | if (!(SHOULD_INVOKE (HOOK_ADD_LINES) |
2810 | if (!HOOK_INVOKE ((this, HOOK_ADD_LINES, DT_WCS_LEN, buf, str - buf, DT_END))) |
2812 | && HOOK_INVOKE ((this, HOOK_ADD_LINES, DT_WCS_LEN, buf, str - buf, DT_END)))) |
2811 | scr_add_lines (buf, str - buf, nlines); |
2813 | scr_add_lines (buf, str - buf, nlines); |
2812 | |
2814 | |
2813 | /* |
2815 | /* |
2814 | * If there have been a lot of new lines, then update the screen |
2816 | * If there have been a lot of new lines, then update the screen |
2815 | * What the heck I'll cheat and only refresh less than every page-full. |
2817 | * What the heck I'll cheat and only refresh less than every page-full. |