aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/marktree.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/marktree.h')
-rw-r--r--src/nvim/marktree.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/marktree.h b/src/nvim/marktree.h
index 30f5aacebc..440816930b 100644
--- a/src/nvim/marktree.h
+++ b/src/nvim/marktree.h
@@ -87,6 +87,11 @@ static inline bool mt_end(mtkey_t key)
return key.flags & MT_FLAG_END;
}
+static inline bool mt_start(mtkey_t key)
+{
+ return mt_paired(key) && !mt_end(key);
+}
+
static inline bool mt_right(mtkey_t key)
{
return key.flags & MT_FLAG_RIGHT_GRAVITY;