Simple refatorings that didn't fit the pattern of the last commit

This commit is contained in:
Felipe Oliveira Carvalho
2014-12-13 10:56:17 -03:00
parent 77135447e0
commit 0bc40e660c
6 changed files with 47 additions and 63 deletions

View File

@@ -2105,14 +2105,10 @@ void get_winopts(buf_T *buf)
*/
pos_T *buflist_findfpos(buf_T *buf)
{
wininfo_T *wip;
static pos_T no_position = INIT_POS_T(1, 0, 0);
wip = find_wininfo(buf, FALSE);
if (wip != NULL)
return &(wip->wi_fpos);
else
return &no_position;
wininfo_T *wip = find_wininfo(buf, FALSE);
return (wip == NULL) ? &no_position : &(wip->wi_fpos);
}
/*