mu-editor / mu

A small, simple editor for beginner Python programmers. Written in Python and Qt5.
http://codewith.mu
GNU General Public License v3.0
1.4k stars 434 forks source link

Limit clicking in the serial panel to moving back a line #2373

Closed Neradoc closed 1 year ago

Neradoc commented 1 year ago

This is an attempt at mitigating #1505 by implementing my 3rd suggestion: limiting the cursor movement to the last line (when moving backwards). The change is not limited to clicking, the same function is used when moving the cursor with the arrows while there's text currently selected, which should not be a big deal.

I have only tested on Mac though, so if there's some platform-specific quirk, it would be nice to test that.

Are there cases (maybe outside of Circuitpython) where we would want to allow to move backwards beyond the line start ?