limejelly / Backlight-for-XCode

Highlights the current editing line in Xcode
411 stars 72 forks source link

Underneath mode: Remove the old highlight before switching textView. #39

Closed tyeen closed 9 years ago

tyeen commented 9 years ago

To make sure the old one doesn't remain there.

In the previous fix of #27 , I tried to observe the NSTextDidEndEditingNotification to check if the old highlight should be removed. But obviously it's not enough: #35

So perform the removing the old highlight by the timing of switching textView. The current action should be the same as Overlay mode.