Skip to content

Commit bf7d0c2

Browse files
committed
docs: update to add is_active
1 parent 5c66d76 commit bf7d0c2

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

doc/libmodal.txt

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ FUNCTIONS *libmodal-usage-function
163163

164164
*Error you cannot pass a funcref to Lua from Vimscript!
165165
       - If you want to use a |funcref()| for {instruction}, it
166-
       must be the name of the function as a `string`.
166+
       must be the name of the function as a `string`. >
167167
       " VIMSCRIPT
168168
       function! s:foo() abort
169169
       echo 'It works'
@@ -280,8 +280,18 @@ FUNCTIONS *libmodal-usage-function
280280
layer:enter()
281281
<
282282
See also: ~
283-
|libmodal.mode.enter| A shortcut to access this function.
284-
|libmodal.mode.new| How to create a |libmodal.Layer|
283+
|libmodal.layer.enter| A shortcut to access this function.
284+
|libmodal.layer.new| How to create a |libmodal.Layer|
285+
286+
`libmodal.Layer`:is_active() *libmodal.Layer:is_active()*
287+
288+
Return: ~
289+
- `true` if the |Layer:enter()| has been called, but not
290+
|Layer:exit()|. `false` otherwise.
291+
292+
See also: ~
293+
|libmodal.Layer:enter()| A shortcut to access this function.
294+
|libmodal.Layer.exit()| How to create a |libmodal.Layer|
285295

286296
`libmodal.Layer`:map({mode}, {lhs}, {rhs}, {opts}) *libmodal.Layer:map()*
287297

0 commit comments

Comments
 (0)