mrichar1 / clipster

clipster - python clipboard manager
GNU Affero General Public License v3.0
242 stars 26 forks source link

CLI output problems #90

Closed dicktyr closed 3 years ago

dicktyr commented 4 years ago

addressing empty registers causes error (also occurs for option -n)

$ clipster -o -N 0
Traceback (most recent call last):
  File "/home/duke/exo/software/manual-installs/clipster-master/clipster", line 913, in <module>
    main()
  File "/home/duke/exo/software/manual-installs/clipster-master/clipster", line 891, in main
    output = client.output()
  File "/home/duke/exo/software/manual-installs/clipster-master/clipster", line 183, in output
    json_data = json_data[self.args.position]
IndexError: list index out of range

option -N output is one character per line

$ echo foo | clipster
$ clipster -o -N 0
f
o
o