aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-08-16 22:32:06 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-08-16 23:05:33 -0400
commit58ad7fc578125aed6187944eb44c574041479fbf (patch)
tree3ee0f84968042afaab7b96f01a1c27bbcdeb3ced /src/nvim/buffer.c
parent015df9c66e66283277c3709376bf6d1f83d55f53 (diff)
downloadrneovim-58ad7fc578125aed6187944eb44c574041479fbf.tar.gz
rneovim-58ad7fc578125aed6187944eb44c574041479fbf.tar.bz2
rneovim-58ad7fc578125aed6187944eb44c574041479fbf.zip
ops: refactor get_spec_reg()
Return value is bool. errmsg (param) is bool in here and in getaltfname(). allocated (param) is bool.
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r--src/nvim/buffer.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c
index 00d472b4c8..64569c294b 100644
--- a/src/nvim/buffer.c
+++ b/src/nvim/buffer.c
@@ -2659,9 +2659,8 @@ buf_T *setaltfname(char_u *ffname, char_u *sfname, linenr_T lnum)
* Get alternate file name for current window.
* Return NULL if there isn't any, and give error message if requested.
*/
-char_u *
-getaltfname (
- int errmsg /* give error message */
+char_u * getaltfname(
+ bool errmsg // give error message
)
{
char_u *fname;