Fixing a bug where adornments would not be sometimes removed when moving a cursor to a new line.