mirror of
https://github.com/Hopiu/micro.git
synced 2026-04-08 08:50:57 +00:00
parent
f730864e9f
commit
ca58fc949e
1 changed files with 3 additions and 0 deletions
|
|
@ -706,6 +706,9 @@ func (v *View) Copy() bool {
|
|||
// CutLine cuts the current line to the clipboard
|
||||
func (v *View) CutLine() bool {
|
||||
v.Cursor.SelectLine()
|
||||
if !v.Cursor.HasSelection() {
|
||||
return false
|
||||
}
|
||||
if v.freshClip == true {
|
||||
if v.Cursor.HasSelection() {
|
||||
if clip, err := clipboard.ReadAll(); err != nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue