mirror of
https://github.com/Hopiu/micro.git
synced 2026-04-08 08:50:57 +00:00
When there is a selection containing multiple lines, CutLine, DeleteLine and CopyLine actions currently cut/delete/copy just the "current" line, as usual. This behavior is at least confusing, since when there is a selection, the cursor is not displayed, so the user doesn't know which line is the current one. So change the behavior. When there is a multi-line selection, cut/delete/copy all lines covered by the selection, not just the current line. Note that it will cut/delete/copy whole lines, not just the selection itself, i.e. if the first and/or the last line of the selection is only partially within the selection, we will cut/delete/copy the entire first and last lines nonetheless. |
||
|---|---|---|
| .. | ||
| actions.go | ||
| actions_other.go | ||
| actions_posix.go | ||
| bindings.go | ||
| bufpane.go | ||
| command.go | ||
| defaults.go | ||
| defaults_darwin.go | ||
| defaults_other.go | ||
| events.go | ||
| globals.go | ||
| infocomplete.go | ||
| infopane.go | ||
| keytree.go | ||
| pane.go | ||
| rawpane.go | ||
| tab.go | ||
| terminal_supported.go | ||
| terminal_unsupported.go | ||
| termpane.go | ||