From 26f4d7930a68a7b14910fb6aed83f7db44bcf0e7 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 25 Jun 2016 15:46:22 -0400 Subject: Small code and documentation cleanup. --- core/events.lua | 6 +++--- core/init.lua | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'core') diff --git a/core/events.lua b/core/events.lua index 0569b09a..9d84a48c 100644 --- a/core/events.lua +++ b/core/events.lua @@ -117,7 +117,7 @@ local M = {} -- -- * _`text`_: The error message text. -- @field FIND (string) --- Emitted in order to find text via the Find & Replace Pane. +-- Emitted to find text via the Find & Replace Pane. -- Arguments: -- -- * _`text`_: The text to search for. @@ -191,7 +191,7 @@ local M = {} -- procedure. -- Emitted by [`quit()`](). -- @field REPLACE (string) --- Emitted in order to replace selected (found) text. +-- Emitted to replace selected (found) text. -- Arguments: -- -- * _`text`_: The replacement text. @@ -227,7 +227,7 @@ local M = {} -- + `buffer.UPDATE_CONTENT` -- Buffer contents, styling, or markers have changed. -- + `buffer.UPDATE_SELECTION` --- Buffer selection has changed. +-- Buffer selection has changed (including caret movement). -- + `buffer.UPDATE_V_SCROLL` -- Buffer has scrolled vertically. -- + `buffer.UPDATE_H_SCROLL` diff --git a/core/init.lua b/core/init.lua index 779dfab9..c05d6404 100644 --- a/core/init.lua +++ b/core/init.lua @@ -132,13 +132,13 @@ local view local quit --- --- Resets the Lua state by reloading all initialization scripts. +-- Resets the Lua State by reloading all initialization scripts. -- Language modules for opened files are NOT reloaded. Re-opening the files that -- use them will reload those modules instead. -- This function is useful for modifying user scripts (such as -- *~/.textadept/init.lua* and *~/.textadept/modules/textadept/keys.lua*) on -- the fly without having to restart Textadept. `arg` is set to `nil` when --- reinitializing the Lua state. Any scripts that need to differentiate between +-- reinitializing the Lua State. Any scripts that need to differentiate between -- startup and reset can test `arg`. -- @class function -- @name reset -- cgit v1.2.3