Mercurial > vim
comparison src/libvterm/t/harness.c @ 30876:2d2758ffd959 v9.0.0772
patch 9.0.0772: the libvterm code is outdated
Commit: https://github.com/vim/vim/commit/501e77766cd30d8f4bfeb04a67aff1865b5f5a41
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Oct 16 14:35:46 2022 +0100
patch 9.0.0772: the libvterm code is outdated
Problem: The libvterm code is outdated.
Solution: Include libvterm changes from revision 790 to 801.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 16 Oct 2022 15:45:04 +0200 |
parents | f93337ae0612 |
children | 82336c3b679d |
comparison
equal
deleted
inserted
replaced
30875:3295247d97a5 | 30876:2d2758ffd959 |
---|---|
999 char *linep = line + 13; | 999 char *linep = line + 13; |
1000 VTermRect rect; | 1000 VTermRect rect; |
1001 size_t len; | 1001 size_t len; |
1002 while(linep[0] == ' ') | 1002 while(linep[0] == ' ') |
1003 linep++; | 1003 linep++; |
1004 if(sscanf(linep, "%d,%d,%d,%d", &rect.start_row, &rect.start_col, &rect.end_row, &rect.end_col) < 4) { | 1004 if(sscanf(linep, "%d,%d,%d,%d", &rect.start_row, &rect.start_col, &rect.end_row, &rect.end_col) == 4) |
1005 ; // fine | |
1006 else if(sscanf(linep, "%d", &rect.start_row) == 1) { | |
1007 rect.end_row = rect.start_row + 1; | |
1008 rect.start_col = 0; | |
1009 vterm_get_size(vt, NULL, &rect.end_col); | |
1010 } | |
1011 else { | |
1005 printf("! screen_chars unrecognised input\n"); | 1012 printf("! screen_chars unrecognised input\n"); |
1006 goto abort_line; | 1013 goto abort_line; |
1007 } | 1014 } |
1008 len = vterm_screen_get_chars(screen, NULL, 0, rect); | 1015 len = vterm_screen_get_chars(screen, NULL, 0, rect); |
1009 if(len == (size_t)-1) | 1016 if(len == (size_t)-1) |