aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/editing.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2013-04-25 09:34:01 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2013-04-25 09:34:01 -0400
commit02a014c3d865ce5a426d2fd0f69c801b7f5a0fc0 (patch)
tree5f51c20606a3cd81312237f305f3fe8845598e26 /modules/textadept/editing.lua
parentcb57c684e1fb68ac8b4fc9c26a33bce603265eba (diff)
downloadtextadept-02a014c3d865ce5a426d2fd0f69c801b7f5a0fc0.tar.gz
textadept-02a014c3d865ce5a426d2fd0f69c801b7f5a0fc0.zip
Code and documentation cleanup.
Diffstat (limited to 'modules/textadept/editing.lua')
-rw-r--r--modules/textadept/editing.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textadept/editing.lua b/modules/textadept/editing.lua
index 2be18168..eb9aa8c5 100644
--- a/modules/textadept/editing.lua
+++ b/modules/textadept/editing.lua
@@ -344,7 +344,7 @@ function M.transpose_chars()
if eol then pos = pos - 1 end
buffer.target_start, buffer.target_end = pos - 1, pos + 1
buffer:replace_target(buffer:text_range(pos - 1, pos + 1):reverse())
- buffer:goto_pos(not eol and pos or pos + 1)
+ buffer:goto_pos(pos + 1)
end
---