Mercurial > vim
diff src/if_tcl.c @ 16162:cd5c83115ec6 v8.1.1086
patch 8.1.1086: too many curly braces
commit https://github.com/vim/vim/commit/abab0b0fdd6535969447b03a4fffc1947918cf6c
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Mar 30 18:47:01 2019 +0100
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 30 Mar 2019 19:00:07 +0100 |
parents | 7fad90423bd2 |
children | f0f9692d4487 |
line wrap: on
line diff
--- a/src/if_tcl.c +++ b/src/if_tcl.c @@ -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;