notepad-plus-plus / notepad-plus-plus

Notepad++ official repository
https://notepad-plus-plus.org/
Other
22.91k stars 4.6k forks source link

Regression in 7.8.3: arrow-key navigation with multiple cursors doesn't work #7878

Open jlinBE opened 4 years ago

jlinBE commented 4 years ago

Description of the Issue

With multiple cursors, I used to be able to move them simultaneously using arrow keys on the keyboard. Now it just puts me back to single-cursors mode.

Steps to Reproduce the Issue

  1. turn on multi-editing.
  2. create multiple cursors using alt-shift-down
  3. press any of the arrow keys.
  4. the editor is back to single-caret mode.

Expected Behavior

should move the cursors simultaneously.

Actual Behavior

Jumps back to single-cursor mode.

Debug Information

Notepad++ v7.8.3 (64-bit) Build time : Jan 12 2020 - 19:09:49 Path : C:\Program Files\Notepad++\notepad++.exe Admin mode : OFF Local Conf mode : OFF OS Name : Windows 10 Enterprise 2016 LTSB (64-bit) OS Version : 1607 OS Build : 14393.3056 Plugins : ElasticTabstops.dll MarkdownViewerPlusPlus.dll mimeTools.dll NppConverter.dll NppExport.dll

sasumner commented 4 years ago

Works fine for me in the same version.

I used to be able to...

If you can recall, which version were YOU able to do this last in?

jlinBE commented 4 years ago

Either 7.8.2 or 7.8.1, can't remember which.

jlinBE commented 4 years ago

On further investigation, cursors created using ctrl-mouseclicks move as normal, but cursors created using alt-shift-mouseclick or alt-shift-arrows don't.

I think I know what's going on - cursors created with the second method are not really cursors - they are zero-width selections. It is possible this was always the case and I misremembered.

They look and otherwise behave just like cursors, though - maybe they should just be treated as such? Just add a special case for multiselections, convert them to multiple cursors on arrow key if multi-editing is activated.

alankilborn commented 2 years ago

This is Scintilla functionality; unless it is changed in the Scintilla project, behavior in Notepad++ isn't going to change. Probably should tag this item with a Scintilla-dependent label.

RafalChlopek commented 2 years ago

Glad I found this issue - It would be awesome if this could be fixed!

alankilborn commented 2 years ago

Perhaps the BetterMultiSelection plugin eases this issue?