aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2013-06-12 12:18:44 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2013-06-12 12:18:44 -0400
commit76bf447b66be5ffe6db007b7d97a0e9687d96e40 (patch)
tree7109169e46d52ef2ea14eea553a6849831be4ee3 /modules/textadept
parent97a931b5dc1153f5ef8bc049bef0f064f8b278b0 (diff)
downloadtextadept-76bf447b66be5ffe6db007b7d97a0e9687d96e40.tar.gz
textadept-76bf447b66be5ffe6db007b7d97a0e9687d96e40.zip
Renamed editing module's `STRIP_WHITESPACE_ON_SAVE` to `STRIP_TRAILING_SPACES`.
Diffstat (limited to 'modules/textadept')
-rw-r--r--modules/textadept/editing.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/textadept/editing.lua b/modules/textadept/editing.lua
index aefb2eb4..b14ac849 100644
--- a/modules/textadept/editing.lua
+++ b/modules/textadept/editing.lua
@@ -24,7 +24,7 @@ local M = {}
-- @field AUTOINDENT (bool)
-- Match the indentation level of the previous line when inserting a new line.
-- The default value is `true`.
--- @field STRIP_WHITESPACE_ON_SAVE (bool)
+-- @field STRIP_TRAILING_SPACES (bool)
-- Strip trailing whitespace on file save.
-- The default value is `true`.
-- @field HIGHLIGHT_COLOR (string)
@@ -36,7 +36,7 @@ M.AUTOPAIR = true
M.HIGHLIGHT_BRACES = true
M.TYPEOVER_CHARS = true
M.AUTOINDENT = true
-M.STRIP_WHITESPACE_ON_SAVE = true
+M.STRIP_TRAILING_SPACES = true
M.HIGHLIGHT_COLOR = not CURSES and 'color.orange' or 'color.yellow'
---
@@ -160,7 +160,7 @@ end)
-- Prepares the buffer for saving to a file.
events.connect(events.FILE_BEFORE_SAVE, function()
- if not M.STRIP_WHITESPACE_ON_SAVE then return end
+ if not M.STRIP_TRAILING_SPACES then return end
local buffer = buffer
buffer:begin_undo_action()
-- Strip trailing whitespace.