aboutsummaryrefslogtreecommitdiffhomepage
path: root/core/.buffer.luadoc
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+667e-11@users.noreply.github.com>2020-07-04 23:22:03 -0400
committerGravatar mitchell <70453897+667e-11@users.noreply.github.com>2020-07-04 23:22:03 -0400
commit021866de868fd074526fc63270639ec2f3ce9aa5 (patch)
treee86d22cad0ba6d50f5db7c6768728ecf46a188e8 /core/.buffer.luadoc
parent9835ab92e265f4c83634f1bec49b4592e2deda8c (diff)
Added `buffer:style_of_name()` as an analogue to `buffer:name_of_style()`.
Diffstat (limited to 'core/.buffer.luadoc')
-rw-r--r--core/.buffer.luadoc9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/.buffer.luadoc b/core/.buffer.luadoc
index 810075fd..175e1098 100644
--- a/core/.buffer.luadoc
+++ b/core/.buffer.luadoc
@@ -1783,6 +1783,15 @@ function new() end
function text_range(buffer, start_pos, end_pos) end
---
+-- Returns the style number associated with string *style_name*, or
+-- `view.STYLE_DEFAULT` if *style_name* is not in use.
+-- @param buffer A buffer.
+-- @param string The style name to get the number of.
+-- @return style number, between `1` and `256`.
+-- @see name_of_style
+function style_of_name(buffer, style_name) end
+
+---
-- Reloads the buffer's file contents, discarding any changes.
-- @param buffer A buffer.
-- @name reload