Closed regiskuckaertz closed 6 years ago
Could you add some unit tests to demonstrate the behaviour/fix?
Sure, I'll work this out today
The tests are failing, if you have the chance to look then I think I'd be happy to merge.
This may be that I need to bring this PR up to date will the latest changes. I'll look into it when I get back next week. Thanks!
oh, that is my own test failing. I'll see what's wrong this evening.
Yeah!
Awesome, I'll look into releasing it soon
@regiskuckaertz second favour of the day, could you rebase with master so I can release this?
Sure!
This fixes the issue https://github.com/guardian/scribe/issues/381 where two characters are left off the selection after the indent command is executed.
This does not fix:
scribe.el
is focused (something to do with scribe-plugin-toolbar)Not strictly related but I thought could come in handy: the changes in selection serve to spare the need of creating many
Selection
instances by calling theupdate
method instead. In fact, I was wondering ifSelection
wouldn't be better as a singleton.