Fix issue with Ace editor and wrap not working properly with "toggle slow"