Updated search/replace to always use the current editor/output/console tab.
This commit is contained in:
@@ -43,12 +43,8 @@ ide.findReplace = {
|
||||
}
|
||||
local findReplace = ide.findReplace
|
||||
|
||||
local lastEditor
|
||||
function findReplace:GetEditor()
|
||||
lastEditor = findReplace.oveditor or GetEditorWithFocus() or lastEditor
|
||||
-- last editor may already be "userdata" instead of a Scintilla object,
|
||||
-- so check if this is still a valid wxSTC object
|
||||
return pcall(function() lastEditor:GetId() end) and lastEditor or GetEditor()
|
||||
return findReplace.oveditor or GetEditorWithFocus() or GetEditor()
|
||||
end
|
||||
|
||||
-------------------- Find replace dialog
|
||||
|
||||
Reference in New Issue
Block a user