- improve detection of current word using Geany built-in word selection
- fix caret position after adding import (take length of insertion into account)