comparison src/screen.c @ 30986:360f286b5869 v9.0.0828

patch 9.0.0828: various typos Commit: https://github.com/vim/vim/commit/c57b5bcd22826e0852c2bc9c7d4382e1cac7cb74 Author: dundargoc <gocdundar@gmail.com> Date: Wed Nov 2 13:30:51 2022 +0000 patch 9.0.0828: various typos Problem: Various typos. Solution: Correct typos. (closes https://github.com/vim/vim/issues/11432)
author Bram Moolenaar <Bram@vim.org>
date Wed, 02 Nov 2022 14:45:11 +0100
parents c7983f593fa7
children 9716c7d24c12
comparison
equal deleted inserted replaced
30985:25894f29103e 30986:360f286b5869
2285 { 2285 {
2286 // Check for illegal values (could be wrong when screen was resized). 2286 // Check for illegal values (could be wrong when screen was resized).
2287 if (off + 1 >= (unsigned)(screen_Rows * screen_Columns)) 2287 if (off + 1 >= (unsigned)(screen_Rows * screen_Columns))
2288 return; 2288 return;
2289 2289
2290 // Outputting the last character on the screen may scrollup the screen. 2290 // Outputting the last character on the screen may scroll the screen up.
2291 // Don't to it! Mark the character invalid (update it when scrolled up) 2291 // Don't to it! Mark the character invalid (update it when scrolled up)
2292 if (row == screen_Rows - 1 && col >= screen_Columns - 2) 2292 if (row == screen_Rows - 1 && col >= screen_Columns - 2)
2293 { 2293 {
2294 ScreenAttrs[off] = (sattr_T)-1; 2294 ScreenAttrs[off] = (sattr_T)-1;
2295 ScreenCols[off] = -1; 2295 ScreenCols[off] = -1;
2732 (Rows + 1) * Columns); 2732 (Rows + 1) * Columns);
2733 } 2733 }
2734 if (enc_dbcs == DBCS_JPNU) 2734 if (enc_dbcs == DBCS_JPNU)
2735 new_ScreenLines2 = LALLOC_MULT(schar_T, (Rows + 1) * Columns); 2735 new_ScreenLines2 = LALLOC_MULT(schar_T, (Rows + 1) * Columns);
2736 new_ScreenAttrs = LALLOC_MULT(sattr_T, (Rows + 1) * Columns); 2736 new_ScreenAttrs = LALLOC_MULT(sattr_T, (Rows + 1) * Columns);
2737 // Clear ScreenCols to avoid a warning for unitialized memory in 2737 // Clear ScreenCols to avoid a warning for uninitialized memory in
2738 // jump_to_mouse(). 2738 // jump_to_mouse().
2739 new_ScreenCols = LALLOC_CLEAR_MULT(colnr_T, (Rows + 1) * Columns); 2739 new_ScreenCols = LALLOC_CLEAR_MULT(colnr_T, (Rows + 1) * Columns);
2740 new_LineOffset = LALLOC_MULT(unsigned, Rows); 2740 new_LineOffset = LALLOC_MULT(unsigned, Rows);
2741 new_LineWraps = LALLOC_MULT(char_u, Rows); 2741 new_LineWraps = LALLOC_MULT(char_u, Rows);
2742 new_TabPageIdxs = LALLOC_MULT(short, Columns); 2742 new_TabPageIdxs = LALLOC_MULT(short, Columns);