mirror of
https://github.com/neovim/neovim.git
synced 2025-09-23 11:38:31 +00:00
truncate_line() cant't FAIL: change its return type to void
This commit is contained in:
@@ -1718,10 +1718,8 @@ del_bytes (
|
|||||||
/*
|
/*
|
||||||
* Delete from cursor to end of line.
|
* Delete from cursor to end of line.
|
||||||
* Caller must have prepared for undo.
|
* Caller must have prepared for undo.
|
||||||
*
|
|
||||||
* return FAIL for failure, OK otherwise
|
|
||||||
*/
|
*/
|
||||||
int
|
void
|
||||||
truncate_line (
|
truncate_line (
|
||||||
int fixpos /* if TRUE fix the cursor position when done */
|
int fixpos /* if TRUE fix the cursor position when done */
|
||||||
)
|
)
|
||||||
@@ -1745,8 +1743,6 @@ truncate_line (
|
|||||||
*/
|
*/
|
||||||
if (fixpos && curwin->w_cursor.col > 0)
|
if (fixpos && curwin->w_cursor.col > 0)
|
||||||
--curwin->w_cursor.col;
|
--curwin->w_cursor.col;
|
||||||
|
|
||||||
return OK;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -22,7 +22,7 @@ void ins_str(char_u *s);
|
|||||||
int del_char(int fixpos);
|
int del_char(int fixpos);
|
||||||
int del_chars(long count, int fixpos);
|
int del_chars(long count, int fixpos);
|
||||||
int del_bytes(long count, int fixpos_arg, int use_delcombine);
|
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);
|
void del_lines(long nlines, int undo);
|
||||||
int gchar_pos(pos_T *pos);
|
int gchar_pos(pos_T *pos);
|
||||||
int gchar_cursor(void);
|
int gchar_cursor(void);
|
||||||
|
Reference in New Issue
Block a user