diff options
author | Felipe Oliveira Carvalho <felipekde@gmail.com> | 2014-05-12 14:20:39 -0300 |
---|---|---|
committer | Felipe Oliveira Carvalho <felipekde@gmail.com> | 2014-05-19 14:50:25 -0300 |
commit | bf3d093627c108ae8d8a9b1d8204e599f7f52ad6 (patch) | |
tree | d6e48eb38dacf5e23b5186ae712d074ee3f535ac | |
parent | 11cae8ec58575213b4f29043a191dcdde766eb0a (diff) | |
download | rneovim-bf3d093627c108ae8d8a9b1d8204e599f7f52ad6.tar.gz rneovim-bf3d093627c108ae8d8a9b1d8204e599f7f52ad6.tar.bz2 rneovim-bf3d093627c108ae8d8a9b1d8204e599f7f52ad6.zip |
truncate_line() cant't FAIL: change its return type to void
-rw-r--r-- | src/nvim/misc1.c | 6 | ||||
-rw-r--r-- | src/nvim/misc1.h | 2 |
2 files changed, 2 insertions, 6 deletions
diff --git a/src/nvim/misc1.c b/src/nvim/misc1.c index 26a660c1b0..5760e74cfe 100644 --- a/src/nvim/misc1.c +++ b/src/nvim/misc1.c @@ -1718,10 +1718,8 @@ del_bytes ( /* * Delete from cursor to end of line. * Caller must have prepared for undo. - * - * return FAIL for failure, OK otherwise */ -int +void truncate_line ( int fixpos /* if TRUE fix the cursor position when done */ ) @@ -1745,8 +1743,6 @@ truncate_line ( */ if (fixpos && curwin->w_cursor.col > 0) --curwin->w_cursor.col; - - return OK; } /* diff --git a/src/nvim/misc1.h b/src/nvim/misc1.h index 7d9cd4ab63..df1d630621 100644 --- a/src/nvim/misc1.h +++ b/src/nvim/misc1.h @@ -22,7 +22,7 @@ void ins_str(char_u *s); int del_char(int fixpos); int del_chars(long count, int fixpos); int del_bytes(long count, int fixpos_arg, int use_delcombine); -int truncate_line(int fixpos); +void truncate_line(int fixpos); void del_lines(long nlines, int undo); int gchar_pos(pos_T *pos); int gchar_cursor(void); |