vim-patch:8.2.4928: various white space and cosmetic mistakes (#21854)

Problem:    Various white space and cosmetic mistakes.
Solution:   Change spaces to tabs, improve comments.

6ed545e797

Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
zeertzjq
2023-01-17 16:53:37 +08:00
committed by GitHub
parent 58f2dcfc88
commit b4d669e7ac
4 changed files with 6 additions and 4 deletions

View File

@@ -3661,8 +3661,7 @@ static bool ins_start_select(int c)
static void ins_insert(int replaceState) static void ins_insert(int replaceState)
{ {
set_vim_var_string(VV_INSERTMODE, ((State & REPLACE_FLAG) ? "i" : set_vim_var_string(VV_INSERTMODE, ((State & REPLACE_FLAG) ? "i" :
replaceState == MODE_VREPLACE ? "v" : replaceState == MODE_VREPLACE ? "v" : "r"), 1);
"r"), 1);
ins_apply_autocmds(EVENT_INSERTCHANGE); ins_apply_autocmds(EVENT_INSERTCHANGE);
if (State & REPLACE_FLAG) { if (State & REPLACE_FLAG) {
State = MODE_INSERT | (State & MODE_LANGMAP); State = MODE_INSERT | (State & MODE_LANGMAP);

View File

@@ -140,6 +140,8 @@ void win_findbuf(typval_T *argvars, list_T *list)
/// Find window specified by "vp" in tabpage "tp". /// Find window specified by "vp" in tabpage "tp".
/// ///
/// @param tp NULL for current tab page /// @param tp NULL for current tab page
/// @return current window if "vp" is number zero.
/// NULL if not found.
win_T *find_win_by_nr(typval_T *vp, tabpage_T *tp) win_T *find_win_by_nr(typval_T *vp, tabpage_T *tp)
{ {
int nr = (int)tv_get_number_chk(vp, NULL); int nr = (int)tv_get_number_chk(vp, NULL);

View File

@@ -29,7 +29,8 @@
# include "input.c.generated.h" // IWYU pragma: export # include "input.c.generated.h" // IWYU pragma: export
#endif #endif
/// Ask for a reply from the user, 'y' or 'n' /// Ask for a reply from the user, a 'y' or a 'n', with prompt "str" (which
/// should have been translated already).
/// ///
/// No other characters are accepted, the message is repeated until a valid /// No other characters are accepted, the message is repeated until a valid
/// reply is entered or <C-c> is hit. /// reply is entered or <C-c> is hit.

View File

@@ -319,7 +319,7 @@ func Test_cursorline_cursorbind_horizontal_scroll()
let lines =<< trim END let lines =<< trim END
call setline(1, 'aa bb cc dd ee ff gg hh ii jj kk ll mm' .. call setline(1, 'aa bb cc dd ee ff gg hh ii jj kk ll mm' ..
\ ' nn oo pp qq rr ss tt uu vv ww xx yy zz') \ ' nn oo pp qq rr ss tt uu vv ww xx yy zz')
set nowrap set nowrap
" The following makes the cursor apparent on the screen dump " The following makes the cursor apparent on the screen dump
set sidescroll=1 cursorcolumn set sidescroll=1 cursorcolumn