From 054f792ac6c1502d5f9bb2b251b3f96c4cb27f6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Thu, 10 Mar 2016 22:18:09 +0100 Subject: view: add query function for multiple cursors --- view.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'view.c') diff --git a/view.c b/view.c index 05fbaf3..4b2f7c8 100644 --- a/view.c +++ b/view.c @@ -1090,6 +1090,10 @@ int view_cursors_count(View *view) { return i; } +bool view_cursors_multiple(View *view) { + return view->cursors && view->cursors->next; +} + static void view_cursors_free(Cursor *c) { if (!c) return; -- cgit v1.2.3