mirror of
https://github.com/Hopiu/micro.git
synced 2026-04-17 21:01:01 +00:00
Merge
This commit is contained in:
commit
a584ff36de
2 changed files with 3 additions and 2 deletions
|
|
@ -805,7 +805,7 @@ func (h *BufPane) ReplaceCmd(args []string) {
|
|||
return l.GreaterEqual(start) && l.LessEqual(end)
|
||||
}
|
||||
|
||||
searchLoc := start
|
||||
searchLoc := h.Cursor.Loc
|
||||
var doReplacement func()
|
||||
doReplacement = func() {
|
||||
locs, found, err := h.Buf.FindNext(search, start, end, searchLoc, true, !noRegex)
|
||||
|
|
@ -816,6 +816,7 @@ func (h *BufPane) ReplaceCmd(args []string) {
|
|||
if !found || !inRange(locs[0]) || !inRange(locs[1]) {
|
||||
h.Cursor.ResetSelection()
|
||||
h.Buf.RelocateCursors()
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ can change it!
|
|||
| Ctrl-z | Undo |
|
||||
| Ctrl-y | Redo |
|
||||
| Alt-UpArrow | Move current line or selected lines up |
|
||||
| Alt-DownArrow | Move current line of selected lines down |
|
||||
| Alt-DownArrow | Move current line or selected lines down |
|
||||
| Alt-Backspace or Alt-Ctrl-h | Delete word left |
|
||||
| Ctrl-a | Select all |
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue