diff options
Diffstat (limited to 'core/ext/keys.lua')
-rw-r--r-- | core/ext/keys.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/ext/keys.lua b/core/ext/keys.lua index cf6cd934..ac600507 100644 --- a/core/ext/keys.lua +++ b/core/ext/keys.lua @@ -154,6 +154,7 @@ local function keypress(code, shift, control, alt) local ch = string_char(code) -- work around native GTK-OSX's handling of Alt key if ch:find('[^A-Za-z ]') and #keychain == 0 then + if buffer.anchor ~= buffer.current_pos then buffer:delete_back() end buffer:add_text(ch) textadept.events.handle('char_added', ch) return true |