mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
*: Fix linter errors
This commit is contained in:
parent
1f9dd689b9
commit
45998deb5d
@ -6543,12 +6543,10 @@ static void f_abs(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
||||
*/
|
||||
static void f_add(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
||||
{
|
||||
list_T *l;
|
||||
rettv->vval.v_number = 1; /* Default: Failed */
|
||||
rettv->vval.v_number = 1; // Default: failed.
|
||||
if (argvars[0].v_type == VAR_LIST) {
|
||||
if (!tv_check_lock(tv_list_locked((l = argvars[0].vval.v_list)),
|
||||
N_("add() argument"),
|
||||
TV_TRANSLATE)) {
|
||||
list_T *const l = argvars[0].vval.v_list;
|
||||
if (!tv_check_lock(tv_list_locked(l), N_("add() argument"), TV_TRANSLATE)) {
|
||||
tv_list_append_tv(l, &argvars[1]);
|
||||
tv_copy(&argvars[0], rettv);
|
||||
}
|
||||
|
@ -1515,7 +1515,8 @@ static void patch_terminfo_bugs(TUIData *data, const char *term,
|
||||
// DECSCUSR (cursor shape) sequence is widely supported by several terminal
|
||||
// types. https://github.com/gnachman/iTerm2/pull/92
|
||||
// xterm extension: vertical bar
|
||||
if (!konsole && ((xterm && !vte_version) // anything claiming xterm compat
|
||||
if (!konsole
|
||||
&& ((xterm && !vte_version) // anything claiming xterm compat
|
||||
// per MinTTY 0.4.3-1 release notes from 2009
|
||||
|| putty
|
||||
// per https://bugzilla.gnome.org/show_bug.cgi?id=720821
|
||||
@ -1528,9 +1529,10 @@ static void patch_terminfo_bugs(TUIData *data, const char *term,
|
||||
// per analysis of VT100Terminal.m
|
||||
|| iterm || iterm_pretending_xterm
|
||||
|| teraterm // per TeraTerm "Supported Control Functions" doco
|
||||
// Some linux-type terminals (such as console-terminal-emulator
|
||||
// from the nosh toolset) implement the xterm extension.
|
||||
|| (linuxvt && (xterm_version || (vte_version > 0) || colorterm)))) {
|
||||
// Some linux-type terminals implement the xterm extension.
|
||||
// Example: console-terminal-emulator from the nosh toolset.
|
||||
|| (linuxvt
|
||||
&& (xterm_version || (vte_version > 0) || colorterm)))) {
|
||||
data->unibi_ext.set_cursor_style =
|
||||
(int)unibi_add_ext_str(ut, "Ss", "\x1b[%p1%d q");
|
||||
if (-1 == data->unibi_ext.reset_cursor_style) {
|
||||
|
Loading…
Reference in New Issue
Block a user