diff options
| -rw-r--r-- | src/nvim/screen.c | 3 | ||||
| -rw-r--r-- | src/nvim/tui/tui.c | 11 | 
2 files changed, 2 insertions, 12 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c index 61d0169226..e8cd6b4e9c 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -5825,7 +5825,8 @@ static void screen_char(unsigned off, int row, int col)      return;    /* Outputting the last character on the screen may scrollup the screen. -   * Don't to it!  Mark the character invalid (update it when scrolled up) */ +   * Don't to it!  Mark the character invalid (update it when scrolled up) +   * FIXME: The premise here is not actually true. c.f. deferred wrap */    if (row == screen_Rows - 1 && col == screen_Columns - 1        /* account for first command-line character in rightleft mode */        && !cmdmsg_rl diff --git a/src/nvim/tui/tui.c b/src/nvim/tui/tui.c index 55ada08663..949a24db89 100644 --- a/src/nvim/tui/tui.c +++ b/src/nvim/tui/tui.c @@ -91,7 +91,6 @@ typedef struct {    bool can_set_lr_margin;    bool can_set_left_right_margin;    bool immediate_wrap_after_last_column; -  bool no_bottom_right_corner;    bool mouse_enabled;    bool busy;    cursorentry_T cursor_shapes[SHAPE_IDX_COUNT]; @@ -202,9 +201,6 @@ static void terminfo_start(UI *ui)    data->can_set_left_right_margin =      !!unibi_get_str(data->ut, unibi_set_left_margin_parm)      && !!unibi_get_str(data->ut, unibi_set_right_margin_parm); -  data->no_bottom_right_corner = -    terminfo_is_term_family(term, "iterm") -    || (terminfo_is_term_family(term, "xterm") && iterm_env);    data->immediate_wrap_after_last_column =      terminfo_is_term_family(term, "cygwin")      || terminfo_is_term_family(term, "interix"); @@ -436,13 +432,6 @@ static void print_cell(UI *ui, UCell *ptr)  {    TUIData *data = ui->data;    UGrid *grid = &data->grid; -  if (data->no_bottom_right_corner -      && grid->row >= ui->height - 1 -      && grid->col >= ui->width - 1) { -    // This (rare) kind of terminal simply cannot print in this corner without -    // scrolling the entire screen up a line, which we do not want to happen. -    return; -  }    if (!data->immediate_wrap_after_last_column) {      // Printing the next character finally advances the cursor.      final_column_wrap(ui);  | 
