Fixed up dirty tracking.

Track externally to each editor window.