xsel

Program for manipulating the X clipboard
git clone https://git.sinitax.com/kfish/xsel
Log | Files | Refs | README | LICENSE | sfeed.txt

commit c08f1aa232b8e195cba2a817fbd59cc976834619
parent 37d55624dea3a6752fafa536d421c0e1fdee57ef
Author: conrad <conrad@9c49b5d1-7df3-0310-bce2-b7278e68f44c>
Date:   Tue, 29 Apr 2008 23:52:14 +0000

Make '-a' and '-f' set do_input = True. Patch from Yair K.:

Manpage says '-a' and '-f' imply '-i', so I'd expect 'xsel -o -a' to
display the selection and let me append to it. instead it displays
the selection and exits.


git-svn-id: http://svn.kfish.org/xsel/trunk@248 9c49b5d1-7df3-0310-bce2-b7278e68f44c

Diffstat:
Mxsel.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/xsel.c b/xsel.c @@ -1978,6 +1978,7 @@ main(int argc, char *argv[]) debug_level++; } else if (OPT("--append") || OPT("-a")) { do_append = True; + do_input = True; dont_output = True; } else if (OPT("--input") || OPT("-i")) { do_input = True; @@ -1990,6 +1991,7 @@ main(int argc, char *argv[]) dont_input = True; } else if (OPT("--follow") || OPT("-f")) { do_follow = True; + do_input = True; dont_output = True; } else if (OPT("--primary") || OPT("-p")) { selection = XA_PRIMARY;