diff options
author | Klemen Košir <klemen913@gmail.com> | 2014-04-29 10:52:10 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-07-08 17:34:08 +0000 |
commit | a568e8b644a41b12388b7c7de4ca0fb8dc107f18 (patch) | |
tree | ceda29fd66a672eaa0cc68bcacc6c7ae66bbb44b /src/nvim/search.c | |
parent | ef34a0ab132bca94bd16d8518c3333cf81cbf2c6 (diff) | |
download | rneovim-a568e8b644a41b12388b7c7de4ca0fb8dc107f18.tar.gz rneovim-a568e8b644a41b12388b7c7de4ca0fb8dc107f18.tar.bz2 rneovim-a568e8b644a41b12388b7c7de4ca0fb8dc107f18.zip |
Replaced most TRUE/FALSE macros in arabic, mbyte and spell. #645
Diffstat (limited to 'src/nvim/search.c')
-rw-r--r-- | src/nvim/search.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/nvim/search.c b/src/nvim/search.c index 55d7c50a0b..9b975bfd54 100644 --- a/src/nvim/search.c +++ b/src/nvim/search.c @@ -795,7 +795,7 @@ int searchit( lnum = 1; if (!shortmess(SHM_SEARCH) && (options & SEARCH_MSG)) give_warning((char_u *)_(dir == BACKWARD - ? top_bot_msg : bot_top_msg), TRUE); + ? top_bot_msg : bot_top_msg), true); } if (got_int || called_emsg || break_loop @@ -1225,7 +1225,7 @@ int search_for_exact_line(buf_T *buf, pos_T *pos, int dir, char_u *pat) if (p_ws) { pos->lnum = buf->b_ml.ml_line_count; if (!shortmess(SHM_SEARCH)) - give_warning((char_u *)_(top_bot_msg), TRUE); + give_warning((char_u *)_(top_bot_msg), true); } else { pos->lnum = 1; break; @@ -1234,7 +1234,7 @@ int search_for_exact_line(buf_T *buf, pos_T *pos, int dir, char_u *pat) if (p_ws) { pos->lnum = 1; if (!shortmess(SHM_SEARCH)) - give_warning((char_u *)_(bot_top_msg), TRUE); + give_warning((char_u *)_(bot_top_msg), true); } else { pos->lnum = 1; break; @@ -3162,10 +3162,10 @@ current_tagblock ( int len; int r; int do_include = include; - int save_p_ws = p_ws; + bool save_p_ws = p_ws; int retval = FAIL; - p_ws = FALSE; + p_ws = false; old_pos = curwin->w_cursor; old_end = curwin->w_cursor; /* remember where we started */ @@ -3764,13 +3764,13 @@ current_search ( int i; int dir; int result; /* result of various function calls */ - char_u old_p_ws = p_ws; + bool old_p_ws = p_ws; int flags = 0; pos_T save_VIsual = VIsual; int one_char; /* wrapping should not occur */ - p_ws = FALSE; + p_ws = false; /* Correct cursor when 'selection' is exclusive */ if (VIsual_active && *p_sel == 'e' && lt(VIsual, curwin->w_cursor)) |