mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-05 06:30:28 +09:00
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user