mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-28 22:08:12 +09:00
Always use the selection as search term when using quick search
This commit is contained in:
@@ -378,12 +378,12 @@ func (b *Buffer) MoveLinesUp(start int, end int) {
|
||||
utf8.RuneCount(b.lines[end-1]),
|
||||
end - 1,
|
||||
},
|
||||
"\n" + b.Line(start - 1),
|
||||
"\n"+b.Line(start-1),
|
||||
)
|
||||
} else {
|
||||
b.Insert(
|
||||
Loc{0, end},
|
||||
b.Line(start - 1) + "\n",
|
||||
b.Line(start-1)+"\n",
|
||||
)
|
||||
}
|
||||
b.Remove(
|
||||
@@ -401,7 +401,7 @@ func (b *Buffer) MoveLinesDown(start int, end int) {
|
||||
}
|
||||
b.Insert(
|
||||
Loc{0, start},
|
||||
b.Line(end) + "\n",
|
||||
b.Line(end)+"\n",
|
||||
)
|
||||
end += 1
|
||||
b.Remove(
|
||||
|
||||
Reference in New Issue
Block a user