SetQuery updates caret position. So should use stored value.

https://twitter.com/Linda_pp/status/506083431067840512
https://twitter.com/Linda_pp/status/506083598718738434