aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/mark.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-11-17 15:53:30 -0800
committerGitHub <noreply@github.com>2019-11-17 15:53:30 -0800
commit54402d6b8fed8f29e094079a87ea97a64556378b (patch)
treea2855a2489c65d77122146aae98bf9a2244b7730 /src/nvim/mark.c
parent91f4bb0aeec0b2ae983ea310ada73be5f35f7c5c (diff)
parent63abe3ca196aa0c889b8cf295e3a6c6c0c20cf2b (diff)
downloadrneovim-54402d6b8fed8f29e094079a87ea97a64556378b.tar.gz
rneovim-54402d6b8fed8f29e094079a87ea97a64556378b.tar.bz2
rneovim-54402d6b8fed8f29e094079a87ea97a64556378b.zip
Merge #11340 'Factor out parse_one_cmd()'
This will allow us to reuse the parsing logic elsewhere, namely for 'inccommand' logic, so we don't need to duplicate it for changes such as the repeated colon fix in #11319.
Diffstat (limited to 'src/nvim/mark.c')
-rw-r--r--src/nvim/mark.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/mark.c b/src/nvim/mark.c
index 454e9e46f4..e5070f23ff 100644
--- a/src/nvim/mark.c
+++ b/src/nvim/mark.c
@@ -296,17 +296,17 @@ pos_T *movechangelist(int count)
* - NULL if there is no mark called 'c'.
* - -1 if mark is in other file and jumped there (only if changefile is TRUE)
*/
-pos_T *getmark_buf(buf_T *buf, int c, int changefile)
+pos_T *getmark_buf(buf_T *buf, int c, bool changefile)
{
return getmark_buf_fnum(buf, c, changefile, NULL);
}
-pos_T *getmark(int c, int changefile)
+pos_T *getmark(int c, bool changefile)
{
return getmark_buf_fnum(curbuf, c, changefile, NULL);
}
-pos_T *getmark_buf_fnum(buf_T *buf, int c, int changefile, int *fnum)
+pos_T *getmark_buf_fnum(buf_T *buf, int c, bool changefile, int *fnum)
{
pos_T *posp;
pos_T *startp, *endp;