Neil Hodgson wrote:
[Redirecting to mailing list as it looks like a Bruce Dodson issue]
Kein-Hong Man:
Got a reproducible test case:
(1) Open the maximum number of buffers
(2) Create a new buffer
Bug is due to the following:
[snip snip]
It looked to me like removing the !makingRoomForNew clause would
fix this but its an explicit piece of code (that is, it has no point
unless it avoids the call) and I'm not sure about the reasoning behind
it so it would be best for Bruce to OK removing it.
[snip snip]
Some background on this: I sent a minor patch to Neil to fix
coverage of OnSwitchFile() in Lua -- if you have file A and file
B, and you close file B, the event isn't called, when in fact the
editor is switching to file A. My patch fixed this, but Lua
scripts fails for the above corner case.
An event handler like the following will fail with a message like:
c:\bin\SciTEStartup.lua:7: Editor pane is not accessible at this time.
function OnSwitchFile(f)
editor.AutoCTypeSeparator=string.byte("~")
editor.AutoCAutoHide = false
end
I have traced the problem, as shown above, but since I know very
little about those parts of SciTE, I'm not qualified to fix it.
--
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest