aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/editing.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2013-11-10 22:32:55 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2013-11-10 22:32:55 -0500
commit922c95cf6711f80cbb6d3a16de98ac14a0ed6f66 (patch)
treed9983dc69898d3f1d9a7665295b5a5831112c53a /modules/textadept/editing.lua
parent38ea16b279aa4f5b355a01040415f67ed2888d8c (diff)
downloadtextadept-922c95cf6711f80cbb6d3a16de98ac14a0ed6f66.tar.gz
textadept-922c95cf6711f80cbb6d3a16de98ac14a0ed6f66.zip
Disable strip trailing spaces by default.
It's probably better to have users enable it manually than to do something unexpected.
Diffstat (limited to 'modules/textadept/editing.lua')
-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 1c957adf..7d585694 100644
--- a/modules/textadept/editing.lua
+++ b/modules/textadept/editing.lua
@@ -37,7 +37,7 @@ M.AUTOPAIR = true
M.HIGHLIGHT_BRACES = true
M.TYPEOVER_CHARS = true
M.AUTOINDENT = true
-M.STRIP_TRAILING_SPACES = true
+M.STRIP_TRAILING_SPACES = false
M.INDIC_BRACEMATCH = _SCINTILLA.next_indic_number()
M.INDIC_HIGHLIGHT = _SCINTILLA.next_indic_number()
@@ -372,8 +372,8 @@ function M.enclose(left, right)
end
---
--- Selects the text between strings *left* and *right* containing the caret.
--- If already selected, toggles between selecting *left* and *right* too.
+-- Selects the text between strings *left* and *right* containing the caret or,
+-- if already selected, toggles between selecting *left* and *right* too.
-- @param left The left part of the enclosure.
-- @param right The right part of the enclosure.
-- @name select_enclosed