From bf7d0c2073b1ff908c5748f08524001cafe8d2a3 Mon Sep 17 00:00:00 2001 From: Iron-E Date: Tue, 17 May 2022 00:00:38 -0400 Subject: [PATCH] docs: update to add `is_active` --- doc/libmodal.txt | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/doc/libmodal.txt b/doc/libmodal.txt index 6e6f32b..8701627 100644 --- a/doc/libmodal.txt +++ b/doc/libmodal.txt @@ -163,7 +163,7 @@ FUNCTIONS *libmodal-usage-function *Error you cannot pass a funcref to Lua from Vimscript!        - If you want to use a |funcref()| for {instruction}, it -        must be the name of the function as a `string`. +        must be the name of the function as a `string`. >        " VIMSCRIPT        function! s:foo() abort        echo 'It works' @@ -280,8 +280,18 @@ FUNCTIONS *libmodal-usage-function layer:enter() < See also: ~ - |libmodal.mode.enter| A shortcut to access this function. - |libmodal.mode.new| How to create a |libmodal.Layer| + |libmodal.layer.enter| A shortcut to access this function. + |libmodal.layer.new| How to create a |libmodal.Layer| + +`libmodal.Layer`:is_active() *libmodal.Layer:is_active()* + + Return: ~ + - `true` if the |Layer:enter()| has been called, but not + |Layer:exit()|. `false` otherwise. + + See also: ~ + |libmodal.Layer:enter()| A shortcut to access this function. + |libmodal.Layer.exit()| How to create a |libmodal.Layer| `libmodal.Layer`:map({mode}, {lhs}, {rhs}, {opts}) *libmodal.Layer:map()*