summaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-10-20 18:13:14 +0000
committerBram Moolenaar <Bram@vim.org>2006-10-20 18:13:14 +0000
commit38c0a6e6faf4a0c11290c36fae9f188a80f1208c (patch)
tree6a0b9e76e33e5e8d0b410b28f7877198c3978ee4 /src/buffer.c
parent2d8b2d8df908fa38a069aad313d0c5426c75a37a (diff)
updated for version 7.0-146v7.0.146
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 55cef35d9c..c9a91ceb35 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -1208,11 +1208,11 @@ do_buffer(action, start, dir, count, forceit)
{
# ifdef FEAT_WINDOWS
/* jump to first window containing buf if one exists ("useopen") */
- if (vim_strchr(p_swb, 'o') && buf_jump_open_win(buf))
+ if (vim_strchr(p_swb, 'o') != NULL && buf_jump_open_win(buf))
return OK;
/* jump to first window in any tab page containing buf if one exists
* ("usetab") */
- if (vim_strchr(p_swb, 'a') && buf_jump_open_tab(buf))
+ if (vim_strchr(p_swb, 'a') != NULL && buf_jump_open_tab(buf))
return OK;
if (win_split(0, 0) == FAIL)
# endif
@@ -1842,13 +1842,13 @@ buflist_getfile(n, lnum, options, forceit)
if (options & GETF_SWITCH)
{
/* use existing open window for buffer if wanted */
- if (vim_strchr(p_swb, 'o')) /* useopen */
+ if (vim_strchr(p_swb, 'o') != NULL) /* useopen */
wp = buf_jump_open_win(buf);
/* use existing open window in any tab page for buffer if wanted */
- if (vim_strchr(p_swb, 'a')) /* usetab */
+ if (vim_strchr(p_swb, 'a') != NULL) /* usetab */
wp = buf_jump_open_tab(buf);
/* split window if wanted ("split") */
- if (wp == NULL && vim_strchr(p_swb, 't') && !bufempty())
+ if (wp == NULL && vim_strchr(p_swb, 'l') != NULL && !bufempty())
{
if (win_split(0, 0) == FAIL)
return FAIL;