truncate_line() cant't FAIL: change its return type to void

This commit is contained in:
Felipe Oliveira Carvalho
2014-05-12 14:20:39 -03:00
parent 11cae8ec58
commit bf3d093627
2 changed files with 2 additions and 6 deletions

View File

@@ -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;
}
/*