mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.3825: various comments could be improved
Problem: Various comments could be improved. Solution: Improve the comments.
This commit is contained in:
@@ -2677,7 +2677,7 @@ handle_mapping(
|
|||||||
if (mp == NULL)
|
if (mp == NULL)
|
||||||
{
|
{
|
||||||
*keylenp = keylen;
|
*keylenp = keylen;
|
||||||
return map_result_get; // got character, break for loop
|
return map_result_get; // get character from typeahead
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3060,7 +3060,7 @@ vgetorpeek(int advance)
|
|||||||
typebuf.tb_off];
|
typebuf.tb_off];
|
||||||
del_typebuf(1, 0);
|
del_typebuf(1, 0);
|
||||||
}
|
}
|
||||||
break;
|
break; // got character, break the for loop
|
||||||
}
|
}
|
||||||
|
|
||||||
// not enough characters, get more
|
// not enough characters, get more
|
||||||
|
@@ -3995,7 +3995,7 @@ gui_mch_replace_dialog(exarg_T *eap)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Synchronize all gui elements, which are dependant upon the
|
* Synchronize all gui elements, which are dependent upon the
|
||||||
* main text font used. Those are in esp. the find/replace dialogs.
|
* main text font used. Those are in esp. the find/replace dialogs.
|
||||||
* If you don't understand why this should be needed, please try to
|
* If you don't understand why this should be needed, please try to
|
||||||
* search for "pi\xea\xb6\xe6" in iso8859-2.
|
* search for "pi\xea\xb6\xe6" in iso8859-2.
|
||||||
|
@@ -3847,6 +3847,11 @@ dbcs_screen_head_off(char_u *base, char_u *p)
|
|||||||
return (q == p) ? 0 : 1;
|
return (q == p) ? 0 : 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Return offset from "p" to the start of a character, including composing
|
||||||
|
* characters. "base" must be the start of the string, which must be NUL
|
||||||
|
* terminated.
|
||||||
|
*/
|
||||||
int
|
int
|
||||||
utf_head_off(char_u *base, char_u *p)
|
utf_head_off(char_u *base, char_u *p)
|
||||||
{
|
{
|
||||||
@@ -4107,6 +4112,7 @@ mb_off_next(char_u *base, char_u *p)
|
|||||||
/*
|
/*
|
||||||
* Return the offset from "p" to the last byte of the character it points
|
* Return the offset from "p" to the last byte of the character it points
|
||||||
* into. Can start anywhere in a stream of bytes.
|
* into. Can start anywhere in a stream of bytes.
|
||||||
|
* Composing characters are not included.
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
mb_tail_off(char_u *base, char_u *p)
|
mb_tail_off(char_u *base, char_u *p)
|
||||||
|
@@ -18,7 +18,7 @@
|
|||||||
* The last three are enabled when compiled as debug mode and individually
|
* The last three are enabled when compiled as debug mode and individually
|
||||||
* disabled by commenting them out.
|
* disabled by commenting them out.
|
||||||
* The log files can get quite big!
|
* The log files can get quite big!
|
||||||
* Do disable all of this when compiling Vim for debugging, undefine DEBUG in
|
* To disable all of this when compiling Vim for debugging, undefine DEBUG in
|
||||||
* regexp.c
|
* regexp.c
|
||||||
*/
|
*/
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
|
@@ -1326,6 +1326,7 @@ func Test_edit_forbidden()
|
|||||||
call assert_fails(':Sandbox', 'E48:')
|
call assert_fails(':Sandbox', 'E48:')
|
||||||
delcom Sandbox
|
delcom Sandbox
|
||||||
call assert_equal(['a'], getline(1,'$'))
|
call assert_equal(['a'], getline(1,'$'))
|
||||||
|
|
||||||
" 2) edit with textlock set
|
" 2) edit with textlock set
|
||||||
fu! DoIt()
|
fu! DoIt()
|
||||||
call feedkeys("i\<del>\<esc>", 'tnix')
|
call feedkeys("i\<del>\<esc>", 'tnix')
|
||||||
@@ -1345,6 +1346,7 @@ func Test_edit_forbidden()
|
|||||||
catch /^Vim\%((\a\+)\)\=:E117/ " catch E117: unknown function
|
catch /^Vim\%((\a\+)\)\=:E117/ " catch E117: unknown function
|
||||||
endtry
|
endtry
|
||||||
au! InsertCharPre
|
au! InsertCharPre
|
||||||
|
|
||||||
" 3) edit when completion is shown
|
" 3) edit when completion is shown
|
||||||
fun! Complete(findstart, base)
|
fun! Complete(findstart, base)
|
||||||
if a:findstart
|
if a:findstart
|
||||||
@@ -1362,6 +1364,7 @@ func Test_edit_forbidden()
|
|||||||
endtry
|
endtry
|
||||||
delfu Complete
|
delfu Complete
|
||||||
set completefunc=
|
set completefunc=
|
||||||
|
|
||||||
if has("rightleft") && exists("+fkmap")
|
if has("rightleft") && exists("+fkmap")
|
||||||
" 4) 'R' when 'fkmap' and 'revins' is set.
|
" 4) 'R' when 'fkmap' and 'revins' is set.
|
||||||
set revins fkmap
|
set revins fkmap
|
||||||
|
@@ -749,6 +749,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
3825,
|
||||||
/**/
|
/**/
|
||||||
3824,
|
3824,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user