From 034ff0cf3af7e616a5377e036852f937f485da32 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+orbitalquark@users.noreply.github.com> Date: Sat, 17 Oct 2020 16:04:57 -0400 Subject: Fixed "Enclose as XML Tags" with multiple selections. --- modules/textadept/menu.lua | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'modules/textadept/menu.lua') diff --git a/modules/textadept/menu.lua b/modules/textadept/menu.lua index 6f59b7ff..d684adc1 100644 --- a/modules/textadept/menu.lua +++ b/modules/textadept/menu.lua @@ -116,9 +116,13 @@ local default_menubar = { {_L['Enclose as XML Tags'], function() buffer:begin_undo_action() enc('<', '>') - local s, e = buffer.current_pos, buffer.current_pos - while buffer.char_at[s - 1] ~= 60 do s = s - 1 end -- '<' - buffer:insert_text(-1, '') end}, -- cgit v1.2.3