mirror of
https://github.com/vim/vim.git
synced 2025-09-03 21:23:48 -04:00
patch 8.1.2243: typos in comments
Problem: Typos in comments. Solution: Fix the typos. (Dominique Pelle, closes #5160) Also adjust formatting a bit.
This commit is contained in:
parent
70def98a95
commit
32aa10203b
@ -1584,8 +1584,8 @@ win_found:
|
|||||||
curbuf = curwin->w_buffer;
|
curbuf = curwin->w_buffer;
|
||||||
if (win_valid(aco->save_prevwin))
|
if (win_valid(aco->save_prevwin))
|
||||||
prevwin = aco->save_prevwin;
|
prevwin = aco->save_prevwin;
|
||||||
// In case the autocommand move the cursor to a position that that
|
// In case the autocommand moves the cursor to a position that
|
||||||
// not exist in curbuf.
|
// does not exist in curbuf.
|
||||||
check_cursor();
|
check_cursor();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4951,7 +4951,7 @@ fix_fname(char_u *fname)
|
|||||||
* When resolving a link both "*sfname" and "*ffname" will point to the same
|
* When resolving a link both "*sfname" and "*ffname" will point to the same
|
||||||
* allocated memory.
|
* allocated memory.
|
||||||
* The "*ffname" and "*sfname" pointer values on call will not be freed.
|
* The "*ffname" and "*sfname" pointer values on call will not be freed.
|
||||||
* Note that the resulting "*ffname" pointer should be considered not allocaed.
|
* Note that the resulting "*ffname" pointer should be considered not allocated.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
fname_expand(
|
fname_expand(
|
||||||
|
@ -1778,10 +1778,10 @@ parse_cino(buf_T *buf)
|
|||||||
// should be located.
|
// should be located.
|
||||||
buf->b_ind_continuation = sw;
|
buf->b_ind_continuation = sw;
|
||||||
|
|
||||||
// Spaces from the indent of the line with an unclosed parentheses.
|
// Spaces from the indent of the line with an unclosed parenthesis.
|
||||||
buf->b_ind_unclosed = sw * 2;
|
buf->b_ind_unclosed = sw * 2;
|
||||||
|
|
||||||
// Spaces from the indent of the line with an unclosed parentheses, which
|
// Spaces from the indent of the line with an unclosed parenthesis, which
|
||||||
// itself is also unclosed.
|
// itself is also unclosed.
|
||||||
buf->b_ind_unclosed2 = sw;
|
buf->b_ind_unclosed2 = sw;
|
||||||
|
|
||||||
@ -1795,7 +1795,7 @@ parse_cino(buf_T *buf)
|
|||||||
buf->b_ind_unclosed_wrapped = 0;
|
buf->b_ind_unclosed_wrapped = 0;
|
||||||
|
|
||||||
// Suppress ignoring white space when lining up with the character after
|
// Suppress ignoring white space when lining up with the character after
|
||||||
// an unclosed parentheses.
|
// an unclosed parenthesis.
|
||||||
buf->b_ind_unclosed_whiteok = 0;
|
buf->b_ind_unclosed_whiteok = 0;
|
||||||
|
|
||||||
// Indent a closing parentheses under the line start of the matching
|
// Indent a closing parentheses under the line start of the matching
|
||||||
@ -2725,7 +2725,7 @@ get_c_indent(void)
|
|||||||
if (curwin->w_cursor.lnum <= ourscope)
|
if (curwin->w_cursor.lnum <= ourscope)
|
||||||
{
|
{
|
||||||
// We reached end of scope:
|
// We reached end of scope:
|
||||||
// If looking for a enum or structure initialization
|
// If looking for an enum or structure initialization
|
||||||
// go further back:
|
// go further back:
|
||||||
// If it is an initializer (enum xxx or xxx =), then
|
// If it is an initializer (enum xxx or xxx =), then
|
||||||
// don't add ind_continuation, otherwise it is a variable
|
// don't add ind_continuation, otherwise it is a variable
|
||||||
@ -2785,7 +2785,7 @@ get_c_indent(void)
|
|||||||
if (terminated == ',')
|
if (terminated == ',')
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// if it es a enum declaration or an assignment,
|
// if it is an enum declaration or an assignment,
|
||||||
// we are done.
|
// we are done.
|
||||||
if (terminated != ';' && cin_isinit())
|
if (terminated != ';' && cin_isinit())
|
||||||
break;
|
break;
|
||||||
@ -3083,7 +3083,7 @@ get_c_indent(void)
|
|||||||
// 123,
|
// 123,
|
||||||
// sizeof
|
// sizeof
|
||||||
// here
|
// here
|
||||||
// Otherwise check whether it is a enumeration or structure
|
// Otherwise check whether it is an enumeration or structure
|
||||||
// initialisation (not indented) or a variable declaration
|
// initialisation (not indented) or a variable declaration
|
||||||
// (indented).
|
// (indented).
|
||||||
terminated = cin_isterminated(l, FALSE, TRUE);
|
terminated = cin_isterminated(l, FALSE, TRUE);
|
||||||
|
@ -206,7 +206,7 @@ crypt_whole_undofile(int method_nr)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Get crypt method specifc length of the file header in bytes.
|
* Get crypt method specific length of the file header in bytes.
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
crypt_get_header_len(int method_nr)
|
crypt_get_header_len(int method_nr)
|
||||||
|
@ -419,7 +419,7 @@ diff_mark_adjust_tp(
|
|||||||
off = 0;
|
off = 0;
|
||||||
if (last < line2)
|
if (last < line2)
|
||||||
{
|
{
|
||||||
/* 2. delete at end of of diff */
|
/* 2. delete at end of diff */
|
||||||
dp->df_count[idx] -= last - lnum_deleted + 1;
|
dp->df_count[idx] -= last - lnum_deleted + 1;
|
||||||
if (dp->df_next != NULL
|
if (dp->df_next != NULL
|
||||||
&& dp->df_next->df_lnum[idx] - 1 <= line2)
|
&& dp->df_next->df_lnum[idx] - 1 <= line2)
|
||||||
|
@ -1504,7 +1504,7 @@ before_blocking(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* updatescipt() is called when a character can be written into the script file
|
* updatescript() is called when a character can be written into the script file
|
||||||
* or when we have waited some time for a character (c == 0)
|
* or when we have waited some time for a character (c == 0)
|
||||||
*
|
*
|
||||||
* All the changed memfiles are synced if c == 0 or when the number of typed
|
* All the changed memfiles are synced if c == 0 or when the number of typed
|
||||||
|
@ -99,7 +99,7 @@ EXTERN short *TabPageIdxs INIT(= NULL);
|
|||||||
// Array with size Rows x Columns containing zindex of popups.
|
// Array with size Rows x Columns containing zindex of popups.
|
||||||
EXTERN short *popup_mask INIT(= NULL);
|
EXTERN short *popup_mask INIT(= NULL);
|
||||||
EXTERN short *popup_mask_next INIT(= NULL);
|
EXTERN short *popup_mask_next INIT(= NULL);
|
||||||
// Array with flags for tansparent cells of current popup.
|
// Array with flags for transparent cells of current popup.
|
||||||
EXTERN char *popup_transparent INIT(= NULL);
|
EXTERN char *popup_transparent INIT(= NULL);
|
||||||
|
|
||||||
// Flag set to TRUE when popup_mask needs to be updated.
|
// Flag set to TRUE when popup_mask needs to be updated.
|
||||||
@ -393,7 +393,7 @@ EXTERN int include_link INIT(= 0); // when 2 include "link" and "clear"
|
|||||||
* character just after the match in the last line.
|
* character just after the match in the last line.
|
||||||
*/
|
*/
|
||||||
EXTERN int highlight_match INIT(= FALSE); // show search match pos
|
EXTERN int highlight_match INIT(= FALSE); // show search match pos
|
||||||
EXTERN linenr_T search_match_lines; // lines of of matched string
|
EXTERN linenr_T search_match_lines; // lines of matched string
|
||||||
EXTERN colnr_T search_match_endcol; // col nr of match end
|
EXTERN colnr_T search_match_endcol; // col nr of match end
|
||||||
#ifdef FEAT_SEARCH_EXTRA
|
#ifdef FEAT_SEARCH_EXTRA
|
||||||
EXTERN linenr_T search_first_line INIT(= 0); // for :{FIRST},{last}s/pat
|
EXTERN linenr_T search_first_line INIT(= 0); // for :{FIRST},{last}s/pat
|
||||||
|
@ -2895,7 +2895,7 @@ drawarea_configure_event_cb(GtkWidget *widget,
|
|||||||
*
|
*
|
||||||
* Naturally, configure events propagated to here like that are fallacious
|
* Naturally, configure events propagated to here like that are fallacious
|
||||||
* and, as a matter of fact, they trigger a geometric collapse of
|
* and, as a matter of fact, they trigger a geometric collapse of
|
||||||
* gui.drawarea in fullscreen and miximized modes.
|
* gui.drawarea in fullscreen and maximized modes.
|
||||||
*
|
*
|
||||||
* To filter out such nuisance events, we are making use of the fact that
|
* To filter out such nuisance events, we are making use of the fact that
|
||||||
* the field send_event of such GdkEventConfigures is set to FALSE in
|
* the field send_event of such GdkEventConfigures is set to FALSE in
|
||||||
|
@ -3682,7 +3682,8 @@ match_add(
|
|||||||
return -1;
|
return -1;
|
||||||
if (id < -1 || id == 0)
|
if (id < -1 || id == 0)
|
||||||
{
|
{
|
||||||
semsg(_("E799: Invalid ID: %d (must be greater than or equal to 1)"), id);
|
semsg(_("E799: Invalid ID: %d (must be greater than or equal to 1)"),
|
||||||
|
id);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if (id != -1)
|
if (id != -1)
|
||||||
@ -4346,7 +4347,7 @@ prepare_search_hl_line(
|
|||||||
* After end, check for start/end of next match.
|
* After end, check for start/end of next match.
|
||||||
* When another match, have to check for start again.
|
* When another match, have to check for start again.
|
||||||
* Watch out for matching an empty string!
|
* Watch out for matching an empty string!
|
||||||
* Return the udpated search_attr.
|
* Return the updated search_attr.
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
update_search_hl(
|
update_search_hl(
|
||||||
|
@ -1612,7 +1612,7 @@ ins_compl_new_leader(void)
|
|||||||
#ifdef FEAT_SPELL
|
#ifdef FEAT_SPELL
|
||||||
spell_bad_len = 0; // need to redetect bad word
|
spell_bad_len = 0; // need to redetect bad word
|
||||||
#endif
|
#endif
|
||||||
// Matches were cleared, need to search for them now. Befor drawing
|
// Matches were cleared, need to search for them now. Before drawing
|
||||||
// the popup menu display the changed text before the cursor. Set
|
// the popup menu display the changed text before the cursor. Set
|
||||||
// "compl_restarting" to avoid that the first match is inserted.
|
// "compl_restarting" to avoid that the first match is inserted.
|
||||||
pum_call_update_screen();
|
pum_call_update_screen();
|
||||||
@ -2858,7 +2858,7 @@ ins_compl_get_exp(pos_T *ini)
|
|||||||
|
|
||||||
// Buffers other than curbuf are scanned from the beginning or the
|
// Buffers other than curbuf are scanned from the beginning or the
|
||||||
// end but never from the middle, thus setting nowrapscan in this
|
// end but never from the middle, thus setting nowrapscan in this
|
||||||
// buffers is a good idea, on the other hand, we always set
|
// buffer is a good idea, on the other hand, we always set
|
||||||
// wrapscan for curbuf to avoid missing matches -- Acevedo,Webb
|
// wrapscan for curbuf to avoid missing matches -- Acevedo,Webb
|
||||||
save_p_ws = p_ws;
|
save_p_ws = p_ws;
|
||||||
if (ins_buf != curbuf)
|
if (ins_buf != curbuf)
|
||||||
|
@ -335,7 +335,7 @@
|
|||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
/* Wether a command index indicates a user command. */
|
/* Whether a command index indicates a user command. */
|
||||||
#define IS_USER_CMDIDX(idx) ((int)(idx) < 0)
|
#define IS_USER_CMDIDX(idx) ((int)(idx) < 0)
|
||||||
|
|
||||||
// Give an error in curwin is a popup window and evaluate to TRUE.
|
// Give an error in curwin is a popup window and evaluate to TRUE.
|
||||||
|
@ -1924,7 +1924,7 @@ check_map_keycodes(void)
|
|||||||
save_name = sourcing_name;
|
save_name = sourcing_name;
|
||||||
sourcing_name = (char_u *)"mappings"; // avoids giving error messages
|
sourcing_name = (char_u *)"mappings"; // avoids giving error messages
|
||||||
|
|
||||||
// This this once for each buffer, and then once for global
|
// Do this once for each buffer, and then once for global
|
||||||
// mappings/abbreviations with bp == NULL
|
// mappings/abbreviations with bp == NULL
|
||||||
for (bp = firstbuf; ; bp = bp->b_next)
|
for (bp = firstbuf; ; bp = bp->b_next)
|
||||||
{
|
{
|
||||||
|
@ -2318,7 +2318,7 @@ swapfile_unchanged(char_u *fname)
|
|||||||
ret = FALSE;
|
ret = FALSE;
|
||||||
|
|
||||||
#if defined(UNIX) || defined(MSWIN)
|
#if defined(UNIX) || defined(MSWIN)
|
||||||
// process must known and not be running
|
// process must be known and not be running
|
||||||
pid = char_to_long(b0.b0_pid);
|
pid = char_to_long(b0.b0_pid);
|
||||||
if (pid == 0L || mch_process_running(pid))
|
if (pid == 0L || mch_process_running(pid))
|
||||||
ret = FALSE;
|
ret = FALSE;
|
||||||
|
@ -1616,7 +1616,7 @@ msg_make(char_u *arg)
|
|||||||
msg_outtrans_special(
|
msg_outtrans_special(
|
||||||
char_u *strstart,
|
char_u *strstart,
|
||||||
int from, // TRUE for lhs of a mapping
|
int from, // TRUE for lhs of a mapping
|
||||||
int maxlen) // screen columns, 0 for unlimeted
|
int maxlen) // screen columns, 0 for unlimited
|
||||||
{
|
{
|
||||||
char_u *str = strstart;
|
char_u *str = strstart;
|
||||||
int retval = 0;
|
int retval = 0;
|
||||||
|
@ -4877,7 +4877,7 @@ put_setstring(
|
|||||||
home_replace(NULL, *valuep, buf, size, FALSE);
|
home_replace(NULL, *valuep, buf, size, FALSE);
|
||||||
|
|
||||||
// If the option value is longer than MAXPATHL, we need to append
|
// If the option value is longer than MAXPATHL, we need to append
|
||||||
// earch comma separated part of the option separately, so that it
|
// each comma separated part of the option separately, so that it
|
||||||
// can be expanded when read back.
|
// can be expanded when read back.
|
||||||
if (size >= MAXPATHL && (flags & P_COMMA) != 0
|
if (size >= MAXPATHL && (flags & P_COMMA) != 0
|
||||||
&& vim_strchr(*valuep, ',') != NULL)
|
&& vim_strchr(*valuep, ',') != NULL)
|
||||||
|
@ -877,7 +877,7 @@ sig_alarm SIGDEFARG(sigarg)
|
|||||||
static JMP_BUF lc_jump_env;
|
static JMP_BUF lc_jump_env;
|
||||||
|
|
||||||
# ifdef SIGHASARG
|
# ifdef SIGHASARG
|
||||||
// Caught signal number, 0 when no was signal caught; used for mch_libcall().
|
// Caught signal number, 0 when no signal was caught; used for mch_libcall().
|
||||||
// Volatile because it is used in signal handlers.
|
// Volatile because it is used in signal handlers.
|
||||||
static volatile sig_atomic_t lc_signal;
|
static volatile sig_atomic_t lc_signal;
|
||||||
# endif
|
# endif
|
||||||
@ -3067,7 +3067,7 @@ executable_file(char_u *name)
|
|||||||
return 0;
|
return 0;
|
||||||
#ifdef VMS
|
#ifdef VMS
|
||||||
/* Like on Unix system file can have executable rights but not necessarily
|
/* Like on Unix system file can have executable rights but not necessarily
|
||||||
* be an executable, but on Unix is not a default for an ordianry file to
|
* be an executable, but on Unix is not a default for an ordinary file to
|
||||||
* have an executable flag - on VMS it is in most cases.
|
* have an executable flag - on VMS it is in most cases.
|
||||||
* Therefore, this check does not have any sense - let keep us to the
|
* Therefore, this check does not have any sense - let keep us to the
|
||||||
* conventions instead:
|
* conventions instead:
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
* The parts that are not used in Vim have been deleted.
|
* The parts that are not used in Vim have been deleted.
|
||||||
* See the "screen" sources for the complete stuff.
|
* See the "screen" sources for the complete stuff.
|
||||||
*
|
*
|
||||||
* This specific version is distibuted under the Vim license (attribution by
|
* This specific version is distributed under the Vim license (attribution by
|
||||||
* Juergen Weigert), the GPL applies to the original version, see the
|
* Juergen Weigert), the GPL applies to the original version, see the
|
||||||
* copyright notice below.
|
* copyright notice below.
|
||||||
*/
|
*/
|
||||||
|
@ -1861,7 +1861,7 @@ qf_new_list(qf_info_T *qi, char_u *qf_title)
|
|||||||
|
|
||||||
// If the current entry is not the last entry, delete entries beyond
|
// If the current entry is not the last entry, delete entries beyond
|
||||||
// the current entry. This makes it possible to browse in a tree-like
|
// the current entry. This makes it possible to browse in a tree-like
|
||||||
// way with ":grep'.
|
// way with ":grep".
|
||||||
while (qi->qf_listcount > qi->qf_curlist + 1)
|
while (qi->qf_listcount > qi->qf_curlist + 1)
|
||||||
qf_free(&qi->qf_lists[--qi->qf_listcount]);
|
qf_free(&qi->qf_lists[--qi->qf_listcount]);
|
||||||
|
|
||||||
@ -5224,7 +5224,7 @@ qf_find_entry_after_pos(
|
|||||||
int *errornr)
|
int *errornr)
|
||||||
{
|
{
|
||||||
if (qf_entry_after_pos(qfp, pos, linewise))
|
if (qf_entry_after_pos(qfp, pos, linewise))
|
||||||
// First entry is after postion 'pos'
|
// First entry is after position 'pos'
|
||||||
return qfp;
|
return qfp;
|
||||||
|
|
||||||
// Find the entry just before or at the position 'pos'
|
// Find the entry just before or at the position 'pos'
|
||||||
|
@ -3213,7 +3213,7 @@ post2nfa(int *postfix, int *end, int nfa_calc_size)
|
|||||||
|
|
||||||
if (nfa_calc_size == FALSE)
|
if (nfa_calc_size == FALSE)
|
||||||
{
|
{
|
||||||
// Allocate space for the stack. Max states on the stack: "nstate'.
|
// Allocate space for the stack. Max states on the stack: "nstate".
|
||||||
stack = ALLOC_MULT(Frag_T, nstate + 1);
|
stack = ALLOC_MULT(Frag_T, nstate + 1);
|
||||||
if (stack == NULL)
|
if (stack == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -899,8 +899,8 @@ adjust_clip_reg(int *rp)
|
|||||||
*rp = ((clip_unnamed & CLIP_UNNAMED_PLUS) && clip_plus.available)
|
*rp = ((clip_unnamed & CLIP_UNNAMED_PLUS) && clip_plus.available)
|
||||||
? '+' : '*';
|
? '+' : '*';
|
||||||
else
|
else
|
||||||
*rp = ((clip_unnamed_saved & CLIP_UNNAMED_PLUS) && clip_plus.available)
|
*rp = ((clip_unnamed_saved & CLIP_UNNAMED_PLUS)
|
||||||
? '+' : '*';
|
&& clip_plus.available) ? '+' : '*';
|
||||||
}
|
}
|
||||||
if (!clip_star.available && *rp == '*')
|
if (!clip_star.available && *rp == '*')
|
||||||
*rp = 0;
|
*rp = 0;
|
||||||
@ -1288,7 +1288,7 @@ op_yank(oparg_T *oap, int deleting, int mess)
|
|||||||
&& !oap->block_mode
|
&& !oap->block_mode
|
||||||
&& yanklines == 1)
|
&& yanklines == 1)
|
||||||
yanklines = 0;
|
yanklines = 0;
|
||||||
// Some versions of Vi use ">=" here, some don't...
|
// Some versions of Vi use ">=" here, some don't...
|
||||||
if (yanklines > p_report)
|
if (yanklines > p_report)
|
||||||
{
|
{
|
||||||
char namebuf[100];
|
char namebuf[100];
|
||||||
|
@ -990,7 +990,7 @@ spell_suggest_intern(suginfo_T *su, int interactive)
|
|||||||
{
|
{
|
||||||
if (sps_flags & SPS_BEST)
|
if (sps_flags & SPS_BEST)
|
||||||
// Adjust the word score for the suggestions found so far for how
|
// Adjust the word score for the suggestions found so far for how
|
||||||
// they sounds like.
|
// they sound like.
|
||||||
rescore_suggestions(su);
|
rescore_suggestions(su);
|
||||||
|
|
||||||
// While going through the soundfold tree "su_maxscore" is the score
|
// While going through the soundfold tree "su_maxscore" is the score
|
||||||
|
@ -3497,7 +3497,7 @@ struct VimMenu
|
|||||||
#ifdef FEAT_GUI_MAC
|
#ifdef FEAT_GUI_MAC
|
||||||
// MenuHandle id;
|
// MenuHandle id;
|
||||||
// short index; // the item index within the father menu
|
// short index; // the item index within the father menu
|
||||||
short menu_id; // the menu id to which this item belong
|
short menu_id; // the menu id to which this item belongs
|
||||||
short submenu_id; // the menu id of the children (could be
|
short submenu_id; // the menu id of the children (could be
|
||||||
// get through some tricks)
|
// get through some tricks)
|
||||||
MenuHandle menu_handle;
|
MenuHandle menu_handle;
|
||||||
|
@ -12,13 +12,12 @@
|
|||||||
*
|
*
|
||||||
* TODO:
|
* TODO:
|
||||||
* - Adjust text property column and length when text is inserted/deleted.
|
* - Adjust text property column and length when text is inserted/deleted.
|
||||||
* -> :substitute with multiple matches, issue #4427
|
|
||||||
* -> a :substitute with a multi-line match
|
* -> a :substitute with a multi-line match
|
||||||
* -> search for changed_bytes() from misc1.c
|
* -> search for changed_bytes() from misc1.c
|
||||||
* -> search for mark_col_adjust()
|
* -> search for mark_col_adjust()
|
||||||
* - Perhaps we only need TP_FLAG_CONT_NEXT and can drop TP_FLAG_CONT_PREV?
|
* - Perhaps we only need TP_FLAG_CONT_NEXT and can drop TP_FLAG_CONT_PREV?
|
||||||
* - Add an arrray for global_proptypes, to quickly lookup a prop type by ID
|
* - Add an array for global_proptypes, to quickly lookup a prop type by ID
|
||||||
* - Add an arrray for b_proptypes, to quickly lookup a prop type by ID
|
* - Add an array for b_proptypes, to quickly lookup a prop type by ID
|
||||||
* - Checking the text length to detect text properties is slow. Use a flag in
|
* - Checking the text length to detect text properties is slow. Use a flag in
|
||||||
* the index, like DB_MARKED?
|
* the index, like DB_MARKED?
|
||||||
* - Also test line2byte() with many lines, so that ml_updatechunk() is taken
|
* - Also test line2byte() with many lines, so that ml_updatechunk() is taken
|
||||||
@ -126,7 +125,7 @@ lookup_prop_type(char_u *name, buf_T *buf)
|
|||||||
* When the argument is not used or "bufnr" is not present then "buf" is
|
* When the argument is not used or "bufnr" is not present then "buf" is
|
||||||
* unchanged.
|
* unchanged.
|
||||||
* If "bufnr" is valid or not present return OK.
|
* If "bufnr" is valid or not present return OK.
|
||||||
* When "arg" is not a dict or "bufnr" is invalide return FAIL.
|
* When "arg" is not a dict or "bufnr" is invalid return FAIL.
|
||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
get_bufnr_from_arg(typval_T *arg, buf_T **buf)
|
get_bufnr_from_arg(typval_T *arg, buf_T **buf)
|
||||||
|
4
src/ui.c
4
src/ui.c
@ -913,7 +913,7 @@ start_global_changes(void)
|
|||||||
|
|
||||||
if (clip_did_set_selection)
|
if (clip_did_set_selection)
|
||||||
{
|
{
|
||||||
clip_unnamed = FALSE;
|
clip_unnamed = 0;
|
||||||
clip_did_set_selection = FALSE;
|
clip_did_set_selection = FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -941,7 +941,7 @@ end_global_changes(void)
|
|||||||
{
|
{
|
||||||
clip_did_set_selection = TRUE;
|
clip_did_set_selection = TRUE;
|
||||||
clip_unnamed = clip_unnamed_saved;
|
clip_unnamed = clip_unnamed_saved;
|
||||||
clip_unnamed_saved = FALSE;
|
clip_unnamed_saved = 0;
|
||||||
if (clipboard_needs_update)
|
if (clipboard_needs_update)
|
||||||
{
|
{
|
||||||
/* only store something in the clipboard,
|
/* only store something in the clipboard,
|
||||||
|
@ -341,7 +341,7 @@ undo_allowed(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Get the undolevle value for the current buffer.
|
* Get the undolevel value for the current buffer.
|
||||||
*/
|
*/
|
||||||
static long
|
static long
|
||||||
get_undolevel(void)
|
get_undolevel(void)
|
||||||
|
@ -741,6 +741,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 */
|
||||||
|
/**/
|
||||||
|
2243,
|
||||||
/**/
|
/**/
|
||||||
2242,
|
2242,
|
||||||
/**/
|
/**/
|
||||||
|
@ -325,7 +325,7 @@ typedef unsigned short short_u;
|
|||||||
typedef unsigned int int_u;
|
typedef unsigned int int_u;
|
||||||
|
|
||||||
// Older systems do not have support for long long
|
// Older systems do not have support for long long
|
||||||
// use a typedef instead of hadcoded long long
|
// use a typedef instead of hard-coded long long
|
||||||
#ifdef HAVE_NO_LONG_LONG
|
#ifdef HAVE_NO_LONG_LONG
|
||||||
typedef long long_long_T;
|
typedef long long_long_T;
|
||||||
typedef long unsigned long_long_u_T;
|
typedef long unsigned long_long_u_T;
|
||||||
|
@ -2307,7 +2307,7 @@ copy_viminfo_marks(
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// No timestamp, must be written by an older Vim.
|
// No timestamp, must be written by an older Vim.
|
||||||
// Assume all remaining buffers are older then
|
// Assume all remaining buffers are older than
|
||||||
// ours.
|
// ours.
|
||||||
while (count < num_marked_files
|
while (count < num_marked_files
|
||||||
&& buflist_used < buflist->ga_len)
|
&& buflist_used < buflist->ga_len)
|
||||||
@ -3201,7 +3201,7 @@ write_viminfo(char_u *file, int forceit)
|
|||||||
{
|
{
|
||||||
if (st_old.st_uid != tmp_st.st_uid)
|
if (st_old.st_uid != tmp_st.st_uid)
|
||||||
// Changing the owner might fail, in which case the
|
// Changing the owner might fail, in which case the
|
||||||
// file will now owned by the current user, oh well.
|
// file will now be owned by the current user, oh well.
|
||||||
vim_ignored = fchown(fileno(fp_out), st_old.st_uid, -1);
|
vim_ignored = fchown(fileno(fp_out), st_old.st_uid, -1);
|
||||||
if (st_old.st_gid != tmp_st.st_gid
|
if (st_old.st_gid != tmp_st.st_gid
|
||||||
&& fchown(fileno(fp_out), -1, st_old.st_gid) == -1)
|
&& fchown(fileno(fp_out), -1, st_old.st_gid) == -1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user