aboutsummaryrefslogtreecommitdiff
path: root/core/.buffer.luadoc
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2016-01-20 01:21:45 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2016-01-20 01:21:45 -0500
commit699550db6c4aad4d4f852694d7d6a100b790e839 (patch)
tree0ee28516d82aab56722904103282a8e610554c07 /core/.buffer.luadoc
parent34ee45b2f180af575b8a1314ca15dc3de1e98fbd (diff)
downloadtextadept-699550db6c4aad4d4f852694d7d6a100b790e839.tar.gz
textadept-699550db6c4aad4d4f852694d7d6a100b790e839.zip
Updated to Scintilla 3.6.3 and enabled idle styling.
Patched Scintilla to prevent warning on widget destroy.
Diffstat (limited to 'core/.buffer.luadoc')
-rw-r--r--core/.buffer.luadoc18
1 files changed, 16 insertions, 2 deletions
diff --git a/core/.buffer.luadoc b/core/.buffer.luadoc
index 971fffff..d36c1dc0 100644
--- a/core/.buffer.luadoc
+++ b/core/.buffer.luadoc
@@ -316,6 +316,21 @@
-- @field highlight_guide (number)
-- The indentation guide column number to highlight, or `0` to stop
-- highlighting.
+-- @field idle_styling (number)
+-- The idle styling mode.
+-- This mode has no effect when `buffer.wrap_mode` is on.
+--
+-- * `buffer.IDLESTYLING_NONE`
+-- Style all the currently visible text before displaying it.
+-- * `buffer.IDLESTYLING_TOVISIBLE`
+-- Style some text before displaying it and then style the rest
+-- incrementally in the background as an idle-time task.
+-- * `buffer.IDLESTYLING_AFTERVISIBLE`
+-- Style text after the currently visible portion in the background.
+-- * `buffer.IDLESTYLING_ALL`
+-- Style text both before and after the visible text in the background.
+--
+-- The default value is `buffer.IDLESTYLING_NONE`.
-- @field indent (number)
-- The number of spaces in one level of indentation.
-- The default value is `0`, which uses the value of [`buffer.tab_width`]().
@@ -2387,8 +2402,7 @@ function position_from_line(buffer, line) end
---
-- Returns the position *n* characters before or after position *pos* (taking
-- multi-byte characters into account).
--- Returns `0` if the position is less than 0 or `buffer.length` if the position
--- is greater than `buffer.length`.
+-- Returns `0` if the position is less than 0 or greater than `buffer.length`.
-- @param buffer A buffer.
-- @param pos The position in *buffer* to get the relative position from.
-- @param n The relative number of characters to get the position for. A