1
0
forked from aniani/vim

patch 8.1.1086: too many curly braces

Problem:    Too many curly braces.
Solution:   Remove curly braces where they are not needed. (Hirohito Higashi,
            closes #3982)
This commit is contained in:
Bram Moolenaar
2019-03-30 18:47:01 +01:00
parent bd9bf266fc
commit abab0b0fdd
42 changed files with 26 additions and 189 deletions

View File

@@ -811,9 +811,7 @@ bufselfcmd(
pos = NULL;
if (line[0] != '\0' && line[1] == '\0')
{
pos = getmark(line[0], FALSE);
}
if (pos == NULL)
{
Tcl_SetResult(interp, _("invalid mark name"), TCL_STATIC);
@@ -1529,9 +1527,7 @@ tclsetdelcmd(
if (reflist->interp == interp && reflist->vimobj == vimobj)
{
if (reflist->delcmd)
{
Tcl_DecrRefCount(reflist->delcmd);
}
Tcl_IncrRefCount(delcmd);
reflist->delcmd = delcmd;
return TCL_OK;