Le 23/05/2013 18:11, BH a écrit :
Yes. Here's a third patch.
A couple of things to fix before committing: 1/ you should handle paragraph-up too.2/ I would replace getPar(cur.pit()).size() with something like cur.lastpos(). Of course, this does not really work for the other instance, but I suspect that the code can be simplified by computing the new cursor first, and calling setCursor later.
Nice patch otherwise :) JMarc