Mercurial > vim
comparison src/libvterm/src/screen.c @ 20488:1d595fada804 v8.2.0798
patch 8.2.0798: libvterm code lags behind the upstream version
Commit: https://github.com/vim/vim/commit/be593bf135f6967335b14ba188bd5f8f32175c75
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue May 19 21:20:04 2020 +0200
patch 8.2.0798: libvterm code lags behind the upstream version
Problem: Libvterm code lags behind the upstream version.
Solution: Include revisions 755 - 758.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 19 May 2020 21:30:07 +0200 |
parents | dc88c690f19b |
children | 747a270eb1db |
comparison
equal
deleted
inserted
replaced
20487:f4ada29cdf4b | 20488:1d595fada804 |
---|---|
531 for(pos.col = 0; pos.col < old_cols && pos.col < new_cols; pos.col += screen->sb_buffer[pos.col].width) { | 531 for(pos.col = 0; pos.col < old_cols && pos.col < new_cols; pos.col += screen->sb_buffer[pos.col].width) { |
532 VTermScreenCell *src = &screen->sb_buffer[pos.col]; | 532 VTermScreenCell *src = &screen->sb_buffer[pos.col]; |
533 ScreenCell *dst = &new_buffer[pos.row * new_cols + pos.col]; | 533 ScreenCell *dst = &new_buffer[pos.row * new_cols + pos.col]; |
534 int i; | 534 int i; |
535 | 535 |
536 for(i = 0; ; i++) { | 536 for(i = 0; i < VTERM_MAX_CHARS_PER_CELL; i++) { |
537 dst->chars[i] = src->chars[i]; | 537 dst->chars[i] = src->chars[i]; |
538 if(!src->chars[i]) | 538 if(!src->chars[i]) |
539 break; | 539 break; |
540 } | 540 } |
541 | 541 |
802 int i; | 802 int i; |
803 | 803 |
804 if(!intcell) | 804 if(!intcell) |
805 return 0; | 805 return 0; |
806 | 806 |
807 for(i = 0; ; i++) { | 807 for(i = 0; i < VTERM_MAX_CHARS_PER_CELL; i++) { |
808 cell->chars[i] = intcell->chars[i]; | 808 cell->chars[i] = intcell->chars[i]; |
809 if(!intcell->chars[i]) | 809 if(!intcell->chars[i]) |
810 break; | 810 break; |
811 } | 811 } |
812 | 812 |