Skip to content
Permalink
Browse files

Make xp, xu, xo use all args

  • Loading branch information...
Raggaer committed May 8, 2019
1 parent ddb8709 commit afce16b291d43f09d7579456fdd69189cbaa1883
Showing with 6 additions and 3 deletions.
  1. +6 −3 entry.go
@@ -320,7 +320,8 @@ func generateEntryPassword(input string) (string, error) {

// Command "xp" copies an entry password
func xp(args []string) {
entry := args[0]
// We combine args again to allow spaces
entry := strings.ToLower(strings.Join(args, " "))
e := getEntryByPath(entry)
if e == nil {
return
@@ -338,7 +339,8 @@ func xp(args []string) {

// Command "xw" copies an entry URL
func xw(args []string) {
entry := args[0]
// We combine args again to allow spaces
entry := strings.ToLower(strings.Join(args, " "))
e := getEntryByPath(entry)
if e == nil {
return
@@ -356,7 +358,8 @@ func xw(args []string) {

// Command "xu" copies an entry username
func xu(args []string) {
entry := args[0]
// We combine args again to allow spaces
entry := strings.ToLower(strings.Join(args, " "))
e := getEntryByPath(entry)
if e == nil {
return

0 comments on commit afce16b

Please sign in to comment.
You can’t perform that action at this time.