Mercurial > vim
diff src/libvterm/src/rect.h @ 30884:ac9464a32606 v9.0.0776
patch 9.0.0776: MSVC can't have field name "small"
Commit: https://github.com/vim/vim/commit/9d8620b519a84983bc8c24cb6c302f4d6b55a6c0
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Oct 16 20:24:16 2022 +0100
patch 9.0.0776: MSVC can't have field name "small"
Problem: MSVC can't have field name "small".
Solution: Rename small to smallfont.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 16 Oct 2022 21:30:06 +0200 |
parents | a4652d7ec99f |
children | bf4f25d50fdd |
line wrap: on
line diff
--- a/src/libvterm/src/rect.h +++ b/src/libvterm/src/rect.h @@ -35,13 +35,13 @@ static int rect_equal(VTermRect *a, VTer (a->end_col == b->end_col); } -/* True if small is contained entirely within big */ -static int rect_contains(VTermRect *big, VTermRect *small) +/* True if smallrect is contained entirely within big */ +static int rect_contains(VTermRect *big, VTermRect *smallrect) { - if(small->start_row < big->start_row) return 0; - if(small->start_col < big->start_col) return 0; - if(small->end_row > big->end_row) return 0; - if(small->end_col > big->end_col) return 0; + if(smallrect->start_row < big->start_row) return 0; + if(smallrect->start_col < big->start_col) return 0; + if(smallrect->end_row > big->end_row) return 0; + if(smallrect->end_col > big->end_col) return 0; return 1; }