]> git.lizzy.rs Git - micro.git/blobdiff - cmd/micro/actions.go
Make ^X act like ^K when nothing is selected (#1092)
[micro.git] / cmd / micro / actions.go
index 4d52e79bfc5e1386a0e0513c23c3d372f62e0608..a291c88d53e75c9f284f863b77c4bdc0f39505d6 100644 (file)
@@ -1219,9 +1219,9 @@ func (v *View) Cut(usePlugin bool) bool {
                        return PostActionCall("Cut", v)
                }
                return true
+       } else {
+               return v.CutLine(usePlugin)
        }
-
-       return false
 }
 
 // DuplicateLine duplicates the current line or selection