From dffbe7cbca7c89932ac1b90b41158b0254d0f529 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Thu, 2 Feb 2017 09:25:49 -0500 Subject: Do not move over selected typeover characters; modules/textadept/editing.lua Typing into selections should replace the selection. --- modules/textadept/editing.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/textadept') diff --git a/modules/textadept/editing.lua b/modules/textadept/editing.lua index ed2d6d0f..53667311 100644 --- a/modules/textadept/editing.lua +++ b/modules/textadept/editing.lua @@ -159,6 +159,7 @@ end) -- Moves over typeover characters when typed. events.connect(events.KEYPRESS, function(code) if M.typeover_chars and M.typeover_chars[code] and + buffer.selection_start == buffer.selection_end and buffer.char_at[buffer.current_pos] == code then buffer:char_right() return true -- cgit v1.2.3