lockbox

password manager
Log | Files | Refs | README | LICENSE

commit b1af49c8282d2bed5d8bb51f7dc9b67de50a7a9a
parent d0890778335106124e3f23fa69a61c61a4e952c2
Author: Sean Enck <sean@ttypty.com>
Date:   Sun, 18 Dec 2022 11:57:06 -0500

renaming internal indicator

Diffstat:
Minternal/platform/clipboard.go | 16++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/internal/platform/clipboard.go b/internal/platform/clipboard.go @@ -16,10 +16,10 @@ import ( type ( // Clipboard represent system clipboard operations. Clipboard struct { - copying []string - pasting []string - MaxTime int - isInternal bool + copying []string + pasting []string + MaxTime int + isOSC52 bool } ) @@ -28,7 +28,7 @@ func newClipboard(copying, pasting []string) (Clipboard, error) { if err != nil { return Clipboard{}, err } - return Clipboard{copying: copying, pasting: pasting, MaxTime: max, isInternal: false}, nil + return Clipboard{copying: copying, pasting: pasting, MaxTime: max, isOSC52: false}, nil } func overrideCommand(v string) ([]string, error) { @@ -64,7 +64,7 @@ func NewClipboard() (Clipboard, error) { return Clipboard{}, err } if isOSC { - c := Clipboard{isInternal: true} + c := Clipboard{isOSC52: true} return c, nil } sys, err := NewPlatform() @@ -101,7 +101,7 @@ func NewClipboard() (Clipboard, error) { // CopyTo will copy to clipboard, if non-empty will clear later. func (c Clipboard) CopyTo(value string) error { - if c.isInternal { + if c.isOSC52 { osc.Copy(value) return nil } @@ -120,7 +120,7 @@ func (c Clipboard) CopyTo(value string) error { // Args returns clipboard args for execution. func (c Clipboard) Args(copying bool) (string, []string, bool) { - if c.isInternal { + if c.isOSC52 { return "", []string{}, false } var using []string