forked from aniani/vim
patch 8.2.0156: various typos in source files and tests
Problem: Various typos in source files and tests. Solution: Fix the typos. (Emir Sari, closes #5532)
This commit is contained in:
parent
a5d5953d59
commit
4b96df5a01
2
Makefile
2
Makefile
@ -153,7 +153,7 @@ MINOR = 2
|
|||||||
# > msvc2015.bat
|
# > msvc2015.bat
|
||||||
# - Build the console binary:
|
# - Build the console binary:
|
||||||
# > nmake -f Make_mvc.mak
|
# > nmake -f Make_mvc.mak
|
||||||
# - Run the tests and check the ouput:
|
# - Run the tests and check the output:
|
||||||
# > nmake -f Make_mvc.mak testclean
|
# > nmake -f Make_mvc.mak testclean
|
||||||
# > nmake -f Make_mvc.mak test
|
# > nmake -f Make_mvc.mak test
|
||||||
# - Rename (using ../tools/rename.bat):
|
# - Rename (using ../tools/rename.bat):
|
||||||
|
@ -198,7 +198,7 @@ from CVS mirror ftp://ftp.polarhome.com/pub/cvs/SOURCE/
|
|||||||
more information can be found in os_vms_fix.com file itself.
|
more information can be found in os_vms_fix.com file itself.
|
||||||
|
|
||||||
NOTE: even if os_vms_fix.com will fix all pre-processor directives it will
|
NOTE: even if os_vms_fix.com will fix all pre-processor directives it will
|
||||||
leave singe (long) line directives. You have to fix them manually.
|
leave single (long) line directives. You have to fix them manually.
|
||||||
Known problematic files are option.h and option.c
|
Known problematic files are option.h and option.c
|
||||||
|
|
||||||
4.2. After the conversion you can continue building as it has been described
|
4.2. After the conversion you can continue building as it has been described
|
||||||
@ -319,7 +319,7 @@ perl_env :
|
|||||||
|
|
||||||
Build it as normally.
|
Build it as normally.
|
||||||
|
|
||||||
Used sharable images are:
|
Used shareable images are:
|
||||||
gtk_root:[glib]libglib.exe /share,-
|
gtk_root:[glib]libglib.exe /share,-
|
||||||
gtk_root:[glib.gmodule]libgmodule.exe /share,-
|
gtk_root:[glib.gmodule]libgmodule.exe /share,-
|
||||||
gtk_root:[gtk.gdk]libgdk.exe /share,-
|
gtk_root:[gtk.gdk]libgdk.exe /share,-
|
||||||
|
@ -281,7 +281,7 @@ ALL_CFLAGS = /def=($(MODEL_DEF)$(DEFS)$(DEBUG_DEF)$(PERL_DEF)$(PYTHON_DEF) -
|
|||||||
$(TCL_INC)$(XDIFF_INC)$(XPM_INC))
|
$(TCL_INC)$(XDIFF_INC)$(XPM_INC))
|
||||||
|
|
||||||
# CFLAGS displayed in :ver information
|
# CFLAGS displayed in :ver information
|
||||||
# It is specially formated for correct display of unix like includes
|
# It is specially formatted for correct display of unix like includes
|
||||||
# as $(GUI_INC) - replaced with $(GUI_INC_VER)
|
# as $(GUI_INC) - replaced with $(GUI_INC_VER)
|
||||||
# Otherwise should not be any other difference.
|
# Otherwise should not be any other difference.
|
||||||
ALL_CFLAGS_VER = /def=($(MODEL_DEF)$(DEFS)$(DEBUG_DEF)$(PERL_DEF)$(PYTHON_DEF) -
|
ALL_CFLAGS_VER = /def=($(MODEL_DEF)$(DEFS)$(DEBUG_DEF)$(PERL_DEF)$(PYTHON_DEF) -
|
||||||
|
@ -38,7 +38,7 @@ typedef struct BalloonEvalStruct
|
|||||||
GtkWidget *balloonShell;
|
GtkWidget *balloonShell;
|
||||||
GtkWidget *balloonLabel;
|
GtkWidget *balloonLabel;
|
||||||
unsigned int timerID; // timer for run
|
unsigned int timerID; // timer for run
|
||||||
BeState showState; // tells us whats currently going on
|
BeState showState; // tells us what's currently going on
|
||||||
int x;
|
int x;
|
||||||
int y;
|
int y;
|
||||||
unsigned int state; // Button/Modifier key state
|
unsigned int state; // Button/Modifier key state
|
||||||
@ -48,7 +48,7 @@ typedef struct BalloonEvalStruct
|
|||||||
Widget balloonShell;
|
Widget balloonShell;
|
||||||
Widget balloonLabel;
|
Widget balloonLabel;
|
||||||
XtIntervalId timerID; // timer for run
|
XtIntervalId timerID; // timer for run
|
||||||
BeState showState; // tells us whats currently going on
|
BeState showState; // tells us what's currently going on
|
||||||
XtAppContext appContext; // used in event handler
|
XtAppContext appContext; // used in event handler
|
||||||
Position x;
|
Position x;
|
||||||
Position y;
|
Position y;
|
||||||
@ -60,7 +60,7 @@ typedef struct BalloonEvalStruct
|
|||||||
HWND balloon;
|
HWND balloon;
|
||||||
int x;
|
int x;
|
||||||
int y;
|
int y;
|
||||||
BeState showState; // tells us whats currently going on
|
BeState showState; // tells us what's currently going on
|
||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
# if !defined(FEAT_GUI_GTK) && !defined(FEAT_GUI_MSWIN)
|
# if !defined(FEAT_GUI_GTK) && !defined(FEAT_GUI_MSWIN)
|
||||||
|
@ -1690,7 +1690,7 @@ set_curbuf(buf_T *buf, int action)
|
|||||||
set_bufref(&prevbufref, prevbuf);
|
set_bufref(&prevbufref, prevbuf);
|
||||||
set_bufref(&newbufref, buf);
|
set_bufref(&newbufref, buf);
|
||||||
|
|
||||||
// Autocommands may delete the curren buffer and/or the buffer we wan to go
|
// Autocommands may delete the current buffer and/or the buffer we want to go
|
||||||
// to. In those cases don't close the buffer.
|
// to. In those cases don't close the buffer.
|
||||||
if (!apply_autocmds(EVENT_BUFLEAVE, NULL, NULL, FALSE, curbuf)
|
if (!apply_autocmds(EVENT_BUFLEAVE, NULL, NULL, FALSE, curbuf)
|
||||||
|| (bufref_valid(&prevbufref)
|
|| (bufref_valid(&prevbufref)
|
||||||
@ -1713,6 +1713,7 @@ set_curbuf(buf_T *buf, int action)
|
|||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
win_T *previouswin = curwin;
|
win_T *previouswin = curwin;
|
||||||
|
|
||||||
if (prevbuf == curbuf)
|
if (prevbuf == curbuf)
|
||||||
u_sync(FALSE);
|
u_sync(FALSE);
|
||||||
close_buffer(prevbuf == curwin->w_buffer ? curwin : NULL, prevbuf,
|
close_buffer(prevbuf == curwin->w_buffer ? curwin : NULL, prevbuf,
|
||||||
|
@ -1939,7 +1939,7 @@ vim_str2nr(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for an alpha-numeric character immediately following, that is
|
// Check for an alphanumeric character immediately following, that is
|
||||||
// most likely a typo.
|
// most likely a typo.
|
||||||
if (strict && n - 1 != maxlen && ASCII_ISALNUM(*ptr))
|
if (strict && n - 1 != maxlen && ASCII_ISALNUM(*ptr))
|
||||||
return;
|
return;
|
||||||
|
@ -2813,7 +2813,7 @@ set_var_const(
|
|||||||
char_u *val = tv_get_string(tv);
|
char_u *val = tv_get_string(tv);
|
||||||
|
|
||||||
// Careful: when assigning to v:errmsg and tv_get_string()
|
// Careful: when assigning to v:errmsg and tv_get_string()
|
||||||
// causes an error message the variable will alrady be set.
|
// causes an error message the variable will already be set.
|
||||||
if (di->di_tv.vval.v_string == NULL)
|
if (di->di_tv.vval.v_string == NULL)
|
||||||
di->di_tv.vval.v_string = vim_strsave(val);
|
di->di_tv.vval.v_string = vim_strsave(val);
|
||||||
}
|
}
|
||||||
|
@ -5288,7 +5288,7 @@ check_help_lang(char_u *arg)
|
|||||||
* Return a heuristic indicating how well the given string matches. The
|
* Return a heuristic indicating how well the given string matches. The
|
||||||
* smaller the number, the better the match. This is the order of priorities,
|
* smaller the number, the better the match. This is the order of priorities,
|
||||||
* from best match to worst match:
|
* from best match to worst match:
|
||||||
* - Match with least alpha-numeric characters is better.
|
* - Match with least alphanumeric characters is better.
|
||||||
* - Match with least total characters is better.
|
* - Match with least total characters is better.
|
||||||
* - Match towards the start is better.
|
* - Match towards the start is better.
|
||||||
* - Match starting with "+" is worse (feature instead of command)
|
* - Match starting with "+" is worse (feature instead of command)
|
||||||
|
@ -6134,7 +6134,7 @@ ex_edit(exarg_T *eap)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* ":edit <file>" command and alikes.
|
* ":edit <file>" command and alike.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
do_exedit(
|
do_exedit(
|
||||||
|
@ -3237,7 +3237,7 @@ vgetorpeek(int advance)
|
|||||||
* 1. a scriptfile
|
* 1. a scriptfile
|
||||||
* 2. the keyboard
|
* 2. the keyboard
|
||||||
*
|
*
|
||||||
* As much characters as we can get (upto 'maxlen') are put in "buf" and
|
* As many characters as we can get (up to 'maxlen') are put in "buf" and
|
||||||
* NUL terminated (buffer length must be 'maxlen' + 1).
|
* NUL terminated (buffer length must be 'maxlen' + 1).
|
||||||
* Minimum for "maxlen" is 3!!!!
|
* Minimum for "maxlen" is 3!!!!
|
||||||
*
|
*
|
||||||
|
@ -3420,7 +3420,7 @@ gui_init_which_components(char_u *oldval UNUSED)
|
|||||||
if (oldval != NULL && gui.in_use)
|
if (oldval != NULL && gui.in_use)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* Check if the menu's go from grey to non-grey or vise versa.
|
* Check if the menus go from grey to non-grey or vice versa.
|
||||||
*/
|
*/
|
||||||
grey_old = (vim_strchr(oldval, GO_GREY) != NULL);
|
grey_old = (vim_strchr(oldval, GO_GREY) != NULL);
|
||||||
grey_new = (vim_strchr(p_go, GO_GREY) != NULL);
|
grey_new = (vim_strchr(p_go, GO_GREY) != NULL);
|
||||||
|
@ -2919,7 +2919,7 @@ gui_mch_prepare(int *argc, char **argv)
|
|||||||
|
|
||||||
(void)FSGetCatalogInfo(&applFSRef, kFSCatInfoNone, NULL, NULL, &applDir, NULL);
|
(void)FSGetCatalogInfo(&applFSRef, kFSCatInfoNone, NULL, NULL, &applDir, NULL);
|
||||||
|
|
||||||
// This technic return NIL when we disallow_gui
|
// This technique returns NIL when we disallow_gui
|
||||||
# endif
|
# endif
|
||||||
exe_name = FullPathFromFSSpec_save(applDir);
|
exe_name = FullPathFromFSSpec_save(applDir);
|
||||||
#endif
|
#endif
|
||||||
|
@ -1206,7 +1206,7 @@ gui_mch_init(void)
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Now that the text area widget has been created, set up the colours,
|
* Now that the text area widget has been created, set up the colours,
|
||||||
* which wil call PtSetResource from gui_mch_new_colors
|
* which will call PtSetResource from gui_mch_new_colors
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -930,7 +930,7 @@ I32 cur_val(IV iv, SV *sv)
|
|||||||
|
|
||||||
if (SvRV(sv) != SvRV(rv))
|
if (SvRV(sv) != SvRV(rv))
|
||||||
// XXX: This magic variable is a bit confusing...
|
// XXX: This magic variable is a bit confusing...
|
||||||
// Is curently refcounted ?
|
// Is currently refcounted ?
|
||||||
sv_setsv(sv, rv);
|
sv_setsv(sv, rv);
|
||||||
|
|
||||||
SvREFCNT_dec(rv);
|
SvREFCNT_dec(rv);
|
||||||
|
@ -112,7 +112,7 @@ PUSH "\e[2F"
|
|||||||
PUSH "\e[0F"
|
PUSH "\e[0F"
|
||||||
?cursor = 0,0
|
?cursor = 0,0
|
||||||
|
|
||||||
!Cursor Horizonal Absolute
|
!Cursor Horizontal Absolute
|
||||||
PUSH "\n"
|
PUSH "\n"
|
||||||
?cursor = 1,0
|
?cursor = 1,0
|
||||||
PUSH "\e[20G"
|
PUSH "\e[20G"
|
||||||
|
@ -40,7 +40,7 @@ PUSH "e\xCC\x81\xCC\x81\xCC\x81\xCC\x81\xCC\x81\xCC\x81\xCC\x81\xCC\x81\xCC\x81\
|
|||||||
PUSH "\xCC\x81\xCC\x81\xCC\x81\xCC\x81\xCC\x81\xCC\x81\xCC\x81\xCC\x81\xCC\x81\xCC\x81\xCC\x81\xCC\x81\xCC\x81\xCC\x81\xCC\x81\xCC\x81\xCC\x81\xCC\x81\xCC\x81\xCC\x81"
|
PUSH "\xCC\x81\xCC\x81\xCC\x81\xCC\x81\xCC\x81\xCC\x81\xCC\x81\xCC\x81\xCC\x81\xCC\x81\xCC\x81\xCC\x81\xCC\x81\xCC\x81\xCC\x81\xCC\x81\xCC\x81\xCC\x81\xCC\x81\xCC\x81"
|
||||||
?screen_cell 0,0 = {0x65,0x301,0x301,0x301,0x301,0x301} width=1 attrs={} fg=rgb(240,240,240) bg=rgb(0,0,0)
|
?screen_cell 0,0 = {0x65,0x301,0x301,0x301,0x301,0x301} width=1 attrs={} fg=rgb(240,240,240) bg=rgb(0,0,0)
|
||||||
|
|
||||||
!Outputing CJK doublewidth in 80th column should wraparound to next line and not crash"
|
!Outputting CJK doublewidth in 80th column should wraparound to next line and not crash"
|
||||||
RESET
|
RESET
|
||||||
PUSH "\e[80G\xEF\xBC\x90"
|
PUSH "\e[80G\xEF\xBC\x90"
|
||||||
?screen_cell 0,79 = {} width=1 attrs={} fg=rgb(240,240,240) bg=rgb(0,0,0)
|
?screen_cell 0,79 = {} width=1 attrs={} fg=rgb(240,240,240) bg=rgb(0,0,0)
|
||||||
|
@ -960,7 +960,7 @@ dbcs_class(unsigned lead, unsigned trail)
|
|||||||
// special symbols
|
// special symbols
|
||||||
return 10;
|
return 10;
|
||||||
case 0x23:
|
case 0x23:
|
||||||
// alpha-numeric
|
// alphanumeric
|
||||||
return 11;
|
return 11;
|
||||||
case 0x24:
|
case 0x24:
|
||||||
// hiragana
|
// hiragana
|
||||||
@ -994,7 +994,7 @@ dbcs_class(unsigned lead, unsigned trail)
|
|||||||
* 20 : Hangul
|
* 20 : Hangul
|
||||||
* 21 : Hanja
|
* 21 : Hanja
|
||||||
* 22 : Symbols
|
* 22 : Symbols
|
||||||
* 23 : Alpha-numeric/Roman Letter (Full width)
|
* 23 : Alphanumeric/Roman Letter (Full width)
|
||||||
* 24 : Hangul Letter(Alphabet)
|
* 24 : Hangul Letter(Alphabet)
|
||||||
* 25 : Roman Numeral/Greek Letter
|
* 25 : Roman Numeral/Greek Letter
|
||||||
* 26 : Box Drawings
|
* 26 : Box Drawings
|
||||||
@ -1025,7 +1025,7 @@ dbcs_class(unsigned lead, unsigned trail)
|
|||||||
// Symbols
|
// Symbols
|
||||||
return 22;
|
return 22;
|
||||||
case 0xA3:
|
case 0xA3:
|
||||||
// Alpha-numeric
|
// Alphanumeric
|
||||||
return 23;
|
return 23;
|
||||||
case 0xA4:
|
case 0xA4:
|
||||||
// Hangul Letter(Alphabet)
|
// Hangul Letter(Alphabet)
|
||||||
|
@ -111,7 +111,7 @@ struct data_block
|
|||||||
unsigned db_txt_end; // byte just after data block
|
unsigned db_txt_end; // byte just after data block
|
||||||
linenr_T db_line_count; // number of lines in this block
|
linenr_T db_line_count; // number of lines in this block
|
||||||
unsigned db_index[1]; // index for start of line (actually bigger)
|
unsigned db_index[1]; // index for start of line (actually bigger)
|
||||||
// followed by empty space upto db_txt_start
|
// followed by empty space up to db_txt_start
|
||||||
// followed by the text in the lines until
|
// followed by the text in the lines until
|
||||||
// end of page
|
// end of page
|
||||||
};
|
};
|
||||||
|
@ -5659,7 +5659,7 @@ n_start_visual_mode(int c)
|
|||||||
VIsual_reselect = TRUE;
|
VIsual_reselect = TRUE;
|
||||||
|
|
||||||
// Corner case: the 0 position in a tab may change when going into
|
// Corner case: the 0 position in a tab may change when going into
|
||||||
// virtualedit. Recalculate curwin->w_cursor to avoid bad hilighting.
|
// virtualedit. Recalculate curwin->w_cursor to avoid bad highlighting.
|
||||||
if (c == Ctrl_V && (ve_flags & VE_BLOCK) && gchar_cursor() == TAB)
|
if (c == Ctrl_V && (ve_flags & VE_BLOCK) && gchar_cursor() == TAB)
|
||||||
{
|
{
|
||||||
validate_virtcol();
|
validate_virtcol();
|
||||||
|
@ -314,7 +314,7 @@ shift_block(oparg_T *oap, int amount)
|
|||||||
* 3. Divvy into TABs & spp
|
* 3. Divvy into TABs & spp
|
||||||
* 4. Construct new string
|
* 4. Construct new string
|
||||||
*/
|
*/
|
||||||
total += bd.pre_whitesp; // all virtual WS upto & incl a split TAB
|
total += bd.pre_whitesp; // all virtual WS up to & incl a split TAB
|
||||||
ws_vcol = bd.start_vcol - bd.pre_whitesp;
|
ws_vcol = bd.start_vcol - bd.pre_whitesp;
|
||||||
if (bd.startspaces)
|
if (bd.startspaces)
|
||||||
{
|
{
|
||||||
|
@ -3155,7 +3155,7 @@ set_num_option(
|
|||||||
|
|
||||||
#if defined(FEAT_EVAL)
|
#if defined(FEAT_EVAL)
|
||||||
// Save the global value before changing anything. This is needed as for
|
// Save the global value before changing anything. This is needed as for
|
||||||
// a global-only option setting the "local value" infact sets the global
|
// a global-only option setting the "local value" in fact sets the global
|
||||||
// value (since there is only one value).
|
// value (since there is only one value).
|
||||||
if ((opt_flags & (OPT_LOCAL | OPT_GLOBAL)) == 0)
|
if ((opt_flags & (OPT_LOCAL | OPT_GLOBAL)) == 0)
|
||||||
old_global_value = *(long *)get_varp_scope(&(options[opt_idx]),
|
old_global_value = *(long *)get_varp_scope(&(options[opt_idx]),
|
||||||
|
@ -1066,7 +1066,7 @@ EXTERN int p_wb; // 'writebackup'
|
|||||||
EXTERN long p_wd; // 'writedelay'
|
EXTERN long p_wd; // 'writedelay'
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* "indir" values for buffer-local opions.
|
* "indir" values for buffer-local options.
|
||||||
* These need to be defined globally, so that the BV_COUNT can be used with
|
* These need to be defined globally, so that the BV_COUNT can be used with
|
||||||
* b_p_scriptID[].
|
* b_p_scriptID[].
|
||||||
*/
|
*/
|
||||||
|
@ -1931,7 +1931,7 @@ get_x11_thing(
|
|||||||
* keep traversing up the tree until a window with a title/icon is
|
* keep traversing up the tree until a window with a title/icon is
|
||||||
* found.
|
* found.
|
||||||
*/
|
*/
|
||||||
// Previously this was only done for xterm and alikes. I don't see a
|
// Previously this was only done for xterm and alike. I don't see a
|
||||||
// reason why it would fail for other terminal emulators.
|
// reason why it would fail for other terminal emulators.
|
||||||
// if (term_is_xterm)
|
// if (term_is_xterm)
|
||||||
{
|
{
|
||||||
|
@ -6927,7 +6927,7 @@ myresetstkoflw(void)
|
|||||||
return 0;
|
return 0;
|
||||||
pStackBase = (BYTE*)mbi.AllocationBase;
|
pStackBase = (BYTE*)mbi.AllocationBase;
|
||||||
|
|
||||||
// ...and the page thats min_stack_req pages away from stack base; this is
|
// ...and the page that's min_stack_req pages away from stack base; this is
|
||||||
// the lowest page we could use.
|
// the lowest page we could use.
|
||||||
pLowestPossiblePage = pStackBase + MIN_STACK_WINNT * nPageSize;
|
pLowestPossiblePage = pStackBase + MIN_STACK_WINNT * nPageSize;
|
||||||
|
|
||||||
|
@ -2771,7 +2771,7 @@ get_nth_entry(qf_list_T *qfl, int errornr, int *new_qfidx)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Get a entry specied by 'errornr' and 'dir' from the current
|
* Get a entry specified by 'errornr' and 'dir' from the current
|
||||||
* quickfix/location list. 'errornr' specifies the index of the entry and 'dir'
|
* quickfix/location list. 'errornr' specifies the index of the entry and 'dir'
|
||||||
* specifies the direction (FORWARD/BACKWARD/FORWARD_FILE/BACKWARD_FILE).
|
* specifies the direction (FORWARD/BACKWARD/FORWARD_FILE/BACKWARD_FILE).
|
||||||
* Returns a pointer to the entry and the index of the new entry is stored in
|
* Returns a pointer to the entry and the index of the new entry is stored in
|
||||||
@ -6320,7 +6320,7 @@ unload_dummy_buffer(buf_T *buf, char_u *dirname_start)
|
|||||||
|
|
||||||
#if defined(FEAT_EVAL) || defined(PROTO)
|
#if defined(FEAT_EVAL) || defined(PROTO)
|
||||||
/*
|
/*
|
||||||
* Copy the specified quickfix entry items into a new dict and appened the dict
|
* Copy the specified quickfix entry items into a new dict and append the dict
|
||||||
* to 'list'. Returns OK on success.
|
* to 'list'. Returns OK on success.
|
||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
|
@ -590,7 +590,7 @@ do_execreg(
|
|||||||
if (y_current->y_array == NULL)
|
if (y_current->y_array == NULL)
|
||||||
return FAIL;
|
return FAIL;
|
||||||
|
|
||||||
// Disallow remaping for ":@r".
|
// Disallow remapping for ":@r".
|
||||||
remap = colon ? REMAP_NONE : REMAP_YES;
|
remap = colon ? REMAP_NONE : REMAP_YES;
|
||||||
|
|
||||||
// Insert lines into typeahead buffer, from last one to first one.
|
// Insert lines into typeahead buffer, from last one to first one.
|
||||||
|
@ -1786,7 +1786,7 @@ spell_load_cb(char_u *fname, void *cookie)
|
|||||||
count_common_word(
|
count_common_word(
|
||||||
slang_T *lp,
|
slang_T *lp,
|
||||||
char_u *word,
|
char_u *word,
|
||||||
int len, // word length, -1 for upto NUL
|
int len, // word length, -1 for up to NUL
|
||||||
int count) // 1 to count once, 10 to init
|
int count) // 1 to count once, 10 to init
|
||||||
{
|
{
|
||||||
hash_T hash;
|
hash_T hash;
|
||||||
|
@ -4123,7 +4123,7 @@ tagstack_clear(win_T *wp)
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Remove the oldest entry from the tag stack and shift the rest of
|
* Remove the oldest entry from the tag stack and shift the rest of
|
||||||
* the entires to free up the top of the stack.
|
* the entries to free up the top of the stack.
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
tagstack_shift(win_T *wp)
|
tagstack_shift(win_T *wp)
|
||||||
|
@ -146,7 +146,7 @@ static termrequest_T rbm_status = TERMREQUEST_INIT;
|
|||||||
// Request cursor style report:
|
// Request cursor style report:
|
||||||
static termrequest_T rcs_status = TERMREQUEST_INIT;
|
static termrequest_T rcs_status = TERMREQUEST_INIT;
|
||||||
|
|
||||||
// Request windos position report:
|
// Request window's position report:
|
||||||
static termrequest_T winpos_status = TERMREQUEST_INIT;
|
static termrequest_T winpos_status = TERMREQUEST_INIT;
|
||||||
|
|
||||||
static termrequest_T *all_termrequests[] = {
|
static termrequest_T *all_termrequests[] = {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Test for breakindent
|
" Test for breakindent
|
||||||
"
|
"
|
||||||
" Note: if you get strange failures when adding new tests, it might be that
|
" Note: if you get strange failures when adding new tests, it might be that
|
||||||
" while the test is run, the breakindent cacheing gets in its way.
|
" while the test is run, the breakindent caching gets in its way.
|
||||||
" It helps to change the tabstop setting and force a redraw (e.g. see
|
" It helps to change the tabstop setting and force a redraw (e.g. see
|
||||||
" Test_breakindent08())
|
" Test_breakindent08())
|
||||||
source check.vim
|
source check.vim
|
||||||
|
@ -20,7 +20,7 @@ endif
|
|||||||
|
|
||||||
let s:chopt = {}
|
let s:chopt = {}
|
||||||
|
|
||||||
" Run "testfunc" after sarting the server and stop the server afterwards.
|
" Run "testfunc" after starting the server and stop the server afterwards.
|
||||||
func s:run_server(testfunc, ...)
|
func s:run_server(testfunc, ...)
|
||||||
call RunServer('test_channel.py', a:testfunc, a:000)
|
call RunServer('test_channel.py', a:testfunc, a:000)
|
||||||
endfunc
|
endfunc
|
||||||
@ -425,7 +425,7 @@ func Test_connect_waittime()
|
|||||||
|
|
||||||
" We intend to use a socket that doesn't exist and wait for half a second
|
" We intend to use a socket that doesn't exist and wait for half a second
|
||||||
" before giving up. If the socket does exist it can fail in various ways.
|
" before giving up. If the socket does exist it can fail in various ways.
|
||||||
" Check for "Connection reset by peer" to avoid flakyness.
|
" Check for "Connection reset by peer" to avoid flakiness.
|
||||||
let start = reltime()
|
let start = reltime()
|
||||||
try
|
try
|
||||||
let handle = ch_open('localhost:9867', {'waittime': 500})
|
let handle = ch_open('localhost:9867', {'waittime': 500})
|
||||||
|
@ -815,7 +815,7 @@ func Test_cindent_1()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public: // <-- this was incorectly indented before!!
|
public: // <-- this was incorrectly indented before!!
|
||||||
void testfall();
|
void testfall();
|
||||||
protected:
|
protected:
|
||||||
void testfall();
|
void testfall();
|
||||||
@ -1780,7 +1780,7 @@ func Test_cindent_1()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public: // <-- this was incorectly indented before!!
|
public: // <-- this was incorrectly indented before!!
|
||||||
void testfall();
|
void testfall();
|
||||||
protected:
|
protected:
|
||||||
void testfall();
|
void testfall();
|
||||||
@ -5254,9 +5254,12 @@ endfunc
|
|||||||
" this was going beyond the end of the line.
|
" this was going beyond the end of the line.
|
||||||
func Test_cindent_case()
|
func Test_cindent_case()
|
||||||
new
|
new
|
||||||
call setline(1, "case x: // x")
|
call setline(1, 'case x: // x')
|
||||||
set cindent
|
set cindent
|
||||||
norm! f:a:
|
norm! f:a:
|
||||||
|
call assert_equal('case x:: // x', getline(1))
|
||||||
|
|
||||||
|
set cindent&
|
||||||
bwipe!
|
bwipe!
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
@ -80,7 +80,7 @@ func Test_digraphs()
|
|||||||
call Put_Dig(".e")
|
call Put_Dig(".e")
|
||||||
call Put_Dig("a.") " not defined
|
call Put_Dig("a.") " not defined
|
||||||
call assert_equal(['ḃ', 'ė', '.'], getline(line('.')-2,line('.')))
|
call assert_equal(['ḃ', 'ė', '.'], getline(line('.')-2,line('.')))
|
||||||
" Diaresis
|
" Diaeresis
|
||||||
call Put_Dig("a:")
|
call Put_Dig("a:")
|
||||||
call Put_Dig(":u")
|
call Put_Dig(":u")
|
||||||
call Put_Dig("b:") " not defined
|
call Put_Dig("b:") " not defined
|
||||||
@ -285,7 +285,7 @@ func Test_digraphs_option()
|
|||||||
call Put_Dig_BS(".","e")
|
call Put_Dig_BS(".","e")
|
||||||
call Put_Dig_BS("a",".") " not defined
|
call Put_Dig_BS("a",".") " not defined
|
||||||
call assert_equal(['ḃ', 'ė', '.'], getline(line('.')-2,line('.')))
|
call assert_equal(['ḃ', 'ė', '.'], getline(line('.')-2,line('.')))
|
||||||
" Diaresis
|
" Diaeresis
|
||||||
call Put_Dig_BS("a",":")
|
call Put_Dig_BS("a",":")
|
||||||
call Put_Dig_BS(":","u")
|
call Put_Dig_BS(":","u")
|
||||||
call Put_Dig_BS("b",":") " not defined
|
call Put_Dig_BS("b",":") " not defined
|
||||||
|
@ -589,7 +589,7 @@ func Test_edit_CTRL_K()
|
|||||||
call feedkeys("A\<c-x>\<c-k>\<down>\<down>\<down>\<down>\<cr>\<esc>", 'tnix')
|
call feedkeys("A\<c-x>\<c-k>\<down>\<down>\<down>\<down>\<cr>\<esc>", 'tnix')
|
||||||
call assert_equal(['AA'], getline(1, '$'))
|
call assert_equal(['AA'], getline(1, '$'))
|
||||||
|
|
||||||
" press an unexecpted key after dictionary completion
|
" press an unexpected key after dictionary completion
|
||||||
%d
|
%d
|
||||||
call setline(1, 'A')
|
call setline(1, 'A')
|
||||||
call cursor(1, 1)
|
call cursor(1, 1)
|
||||||
|
@ -10,7 +10,7 @@ if s:python == ''
|
|||||||
throw 'Skipped: python program missing'
|
throw 'Skipped: python program missing'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Run "testfunc" after sarting the server and stop the server afterwards.
|
" Run "testfunc" after starting the server and stop the server afterwards.
|
||||||
func s:run_server(testfunc, ...)
|
func s:run_server(testfunc, ...)
|
||||||
call RunServer('test_netbeans.py', a:testfunc, a:000)
|
call RunServer('test_netbeans.py', a:testfunc, a:000)
|
||||||
endfunc
|
endfunc
|
||||||
|
@ -2629,7 +2629,7 @@ func Test_cwindow_jump()
|
|||||||
call assert_equal('quickfix', getwinvar(1, '&buftype'))
|
call assert_equal('quickfix', getwinvar(1, '&buftype'))
|
||||||
call assert_equal('quickfix', getwinvar(3, '&buftype'))
|
call assert_equal('quickfix', getwinvar(3, '&buftype'))
|
||||||
|
|
||||||
" Jumping to a file from the location list window should find a usuable
|
" Jumping to a file from the location list window should find a usable
|
||||||
" window by wrapping around the window list.
|
" window by wrapping around the window list.
|
||||||
enew | only
|
enew | only
|
||||||
call setloclist(0, [], 'f')
|
call setloclist(0, [], 'f')
|
||||||
|
@ -274,7 +274,7 @@ func Test_set_register()
|
|||||||
call setreg('=', 'b', 'a')
|
call setreg('=', 'b', 'a')
|
||||||
call assert_equal('regwrite', getreg('='))
|
call assert_equal('regwrite', getreg('='))
|
||||||
|
|
||||||
" Test for settting a list of lines to special registers
|
" Test for setting a list of lines to special registers
|
||||||
call setreg('/', [])
|
call setreg('/', [])
|
||||||
call assert_equal('', @/)
|
call assert_equal('', @/)
|
||||||
call setreg('=', [])
|
call setreg('=', [])
|
||||||
|
@ -5,7 +5,7 @@ func CheckFileTime(doSleep)
|
|||||||
let times = []
|
let times = []
|
||||||
let result = 0
|
let result = 0
|
||||||
|
|
||||||
" Use three files istead of localtim(), with a network filesystem the file
|
" Use three files instead of localtim(), with a network filesystem the file
|
||||||
" times may differ at bit
|
" times may differ at bit
|
||||||
let fl = ['Hello World!']
|
let fl = ['Hello World!']
|
||||||
for fname in fnames
|
for fname in fnames
|
||||||
|
2
src/ui.c
2
src/ui.c
@ -1500,7 +1500,7 @@ clip_invert_area(
|
|||||||
row2--;
|
row2--;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handle the rectangle thats left
|
// Handle the rectangle that's left
|
||||||
if (row2 >= row1)
|
if (row2 >= row1)
|
||||||
clip_invert_rectangle(cbd, row1, 0, row2 - row1 + 1,
|
clip_invert_rectangle(cbd, row1, 0, row2 - row1 + 1,
|
||||||
(int)Columns, invert);
|
(int)Columns, invert);
|
||||||
|
@ -742,6 +742,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 */
|
||||||
|
/**/
|
||||||
|
156,
|
||||||
/**/
|
/**/
|
||||||
155,
|
155,
|
||||||
/**/
|
/**/
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
* xxdline().
|
* xxdline().
|
||||||
* 7.06.96 -i printed 'int' instead of 'char'. *blush*
|
* 7.06.96 -i printed 'int' instead of 'char'. *blush*
|
||||||
* added Bram's OS2 ifdefs...
|
* added Bram's OS2 ifdefs...
|
||||||
* 18.07.96 gcc -Wall @ SunOS4 is now slient.
|
* 18.07.96 gcc -Wall @ SunOS4 is now silent.
|
||||||
* Added osver for MSDOS/DJGPP/WIN32.
|
* Added osver for MSDOS/DJGPP/WIN32.
|
||||||
* 29.08.96 Added size_t to strncmp() for Amiga.
|
* 29.08.96 Added size_t to strncmp() for Amiga.
|
||||||
* 24.03.97 Windows NT support (Phil Hanna). Clean exit for Amiga WB (Bram)
|
* 24.03.97 Windows NT support (Phil Hanna). Clean exit for Amiga WB (Bram)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user