diff options
author | Klemen Košir <klemen913@gmail.com> | 2014-04-30 11:06:52 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-07-08 17:25:48 +0000 |
commit | ef34a0ab132bca94bd16d8518c3333cf81cbf2c6 (patch) | |
tree | 9ae6122b7c3d941fdc237c51ef81f04e2bb737ac /src/nvim/ex_cmds.c | |
parent | 3cf435af363dc3585568e1213152e31ed6b1fc08 (diff) | |
download | rneovim-ef34a0ab132bca94bd16d8518c3333cf81cbf2c6.tar.gz rneovim-ef34a0ab132bca94bd16d8518c3333cf81cbf2c6.tar.bz2 rneovim-ef34a0ab132bca94bd16d8518c3333cf81cbf2c6.zip |
Replace int with bool in some files. #654
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r-- | src/nvim/ex_cmds.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index a04f93a851..f17bf33f19 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -4595,9 +4595,9 @@ void free_old_sub(void) * Set up for a tagpreview. * Return TRUE when it was created. */ -int +bool prepare_tagpreview ( - int undo_sync /* sync undo when leaving the window */ + bool undo_sync /* sync undo when leaving the window */ ) { win_T *wp; @@ -4618,17 +4618,17 @@ prepare_tagpreview ( */ if (win_split(g_do_tagpreview > 0 ? g_do_tagpreview : 0, 0) == FAIL) - return FALSE; + return false; curwin->w_p_pvw = TRUE; curwin->w_p_wfh = TRUE; RESET_BINDING(curwin); /* don't take over 'scrollbind' and 'cursorbind' */ curwin->w_p_diff = FALSE; /* no 'diff' */ curwin->w_p_fdc = 0; /* no 'foldcolumn' */ - return TRUE; + return true; } } - return FALSE; + return false; } @@ -4735,7 +4735,7 @@ void ex_help(exarg_T *eap) if (wp->w_buffer != NULL && wp->w_buffer->b_help) break; if (wp != NULL && wp->w_buffer->b_nwindows > 0) - win_enter(wp, TRUE); + win_enter(wp, true); else { /* * There is no help window yet. |