23/06/2014 12:40, Scott Kostyshak:
On Fri, Jun 20, 2014 at 10:40 AM, Jean-Marc Lasgouttes
<lasgout...@lyx.org> wrote:
18/06/2014 14:49, Scott Kostyshak:

What about having Cursor::selection() return false if selection is empty?

Attached is my attempt to do this. I have no idea what this code does
though. Surprisingly the attempt seems to partially work (although I'm
sure it's still poorly written) if the selection is not started with
an inset. For example, if the cursor is just behind a note inset or a
table, selecting it will not work. If it is a math inset it crashes.

This is to be expected, since the cursor enters the math inset instead of entering it. We'd have to study a bit the code to understand what is the cleanest solution.

A possibility would be to call at the end of in BufferView::dispatch a function (or some code) that resets the selection if it is empty.

Would that work?

JMarc

Reply via email to