diff options
| author | dundargoc <gocdundar@gmail.com> | 2023-12-16 22:14:28 +0100 |
|---|---|---|
| committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-12-18 16:22:13 +0100 |
| commit | 6cb78e2d1c4c6c63c628c965076a07ce5f7adbb6 (patch) | |
| tree | 20bfbe8b317fde86121fcf9af10975b2b95e5758 /src/nvim/tui | |
| parent | 8c173cec295cf8c78bdbc440dc87f0473560f69a (diff) | |
| download | rneovim-6cb78e2d1c4c6c63c628c965076a07ce5f7adbb6.tar.gz rneovim-6cb78e2d1c4c6c63c628c965076a07ce5f7adbb6.tar.bz2 rneovim-6cb78e2d1c4c6c63c628c965076a07ce5f7adbb6.zip | |
docs: add style rule regarding initialization
Specifically, specify that each initialization should be done on a
separate line.
Diffstat (limited to 'src/nvim/tui')
| -rw-r--r-- | src/nvim/tui/tui.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/nvim/tui/tui.c b/src/nvim/tui/tui.c index 496c192b95..ba4069ecf4 100644 --- a/src/nvim/tui/tui.c +++ b/src/nvim/tui/tui.c @@ -1223,8 +1223,10 @@ void tui_grid_scroll(TUIData *tui, Integer g, Integer startrow, Integer endrow, Integer endcol, Integer rows, Integer cols FUNC_ATTR_UNUSED) { UGrid *grid = &tui->grid; - int top = (int)startrow, bot = (int)endrow - 1; - int left = (int)startcol, right = (int)endcol - 1; + int top = (int)startrow; + int bot = (int)endrow - 1; + int left = (int)startcol; + int right = (int)endcol - 1; bool fullwidth = left == 0 && right == tui->width - 1; tui->scroll_region_is_full_screen = fullwidth @@ -1565,7 +1567,8 @@ static void invalidate(TUIData *tui, int top, int bot, int left, int right) /// application (i.e., the host terminal). void tui_guess_size(TUIData *tui) { - int width = 0, height = 0; + int width = 0; + int height = 0; // 1 - try from a system call(ioctl/TIOCGWINSZ on unix) if (tui->out_isatty |