Updated search/replace to always use the current editor/output/console tab.

This commit is contained in:
Paul Kulchenko
2014-09-05 14:24:06 -07:00
parent 63bc899a97
commit df6b9fe9b3

View File

@@ -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