aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2011-07-14 17:10:41 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2011-07-14 17:10:41 -0400
commit93e209737bf988a55972def61c4734590527d5f9 (patch)
tree64f5cd6d72e1f8671364e026ecd2dd6b5f544c88 /modules
parent18d20786ed8844680ba1ef05b1c8bd5654f9dd70 (diff)
downloadtextadept-93e209737bf988a55972def61c4734590527d5f9.tar.gz
textadept-93e209737bf988a55972def61c4734590527d5f9.zip
Renamed _m.textadept.editing.SAVE_STRIPS_WS to STRIP_WHITESPACE_ON_SAVE.
Diffstat (limited to 'modules')
-rw-r--r--modules/textadept/editing.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/textadept/editing.lua b/modules/textadept/editing.lua
index 885449a4..5fe7ab7f 100644
--- a/modules/textadept/editing.lua
+++ b/modules/textadept/editing.lua
@@ -17,8 +17,8 @@ module('_m.textadept.editing', package.seeall)
-- default value is `true`.
-- * `AUTOINDENT` [bool]: Match the indentation level of the previous line when
-- pressing the Enter key. The default value is `true`.
--- * `SAVE_STRIPS_WS` [bool]: Strip trailing whitespace on file save. The
--- default value is `true`.
+-- * `STRIP_WHITESPACE_ON_SAVE` [bool]: Strip trailing whitespace on file save.
+-- The default value is `true`.
-- * `MARK_HIGHLIGHT_BACK` [number]: The background color used for a line
-- containing a highlighted word in 0xBBGGRR format.
-- * `INDIC_HIGHLIGHT_BACK` [number]: The color used for an indicator for a
@@ -31,7 +31,7 @@ module('_m.textadept.editing', package.seeall)
AUTOPAIR = true
HIGHLIGHT_BRACES = true
AUTOINDENT = true
-SAVE_STRIPS_WS = true
+STRIP_WHITESPACE_ON_SAVE = true
MARK_HIGHLIGHT_BACK = buffer and buffer.caret_line_back or 0xEEEEEE
INDIC_HIGHLIGHT_BACK = 0x4080C0
INDIC_HIGHLIGHT_ALPHA = 100
@@ -241,7 +241,7 @@ end
-- Strips trailing whitespace off of every line, ensures an ending newline, and
-- converts non-consistent EOLs.
function prepare_for_save()
- if not SAVE_STRIPS_WS then return end
+ if not STRIP_WHITESPACE_ON_SAVE then return end
local buffer = buffer
buffer:begin_undo_action()
-- Strip trailing whitespace.