File tree Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -465,7 +465,7 @@ some horizontal scrolling) or on first column. After last column searching start
465465## Export & Clipboard
466466
467467For clipboard support the clipboard application should be installed: 1. wl-clipboard (Wayland),
468- 2 . xclip (xwindows), 3. pbcopy (MacOS) or 4. clip (WSL2).
468+ 2 . xclip (xwindows), 3. pbcopy (MacOS) or 4. clip.exe (WSL2).
469469
470470` pspg ` try to translate unicode symbol '∅' to NULL every time. If you don't use special setting
471471by ` \pset null ... ` , then ` psql ` displays empty string instead NULL. ` pspg ` hasn't any special
Original file line number Diff line number Diff line change @@ -1871,6 +1871,19 @@ check_clipboard_app(Options *opts, bool *force_refresh)
18711871
18721872 * force_refresh = true;
18731873
1874+ errno = 0 ;
1875+ f = popen ("clip.exe /? 2>&1" , "r" );
1876+ if (f )
1877+ {
1878+ /* first row of output is empty line, just ignore it */
1879+ status = pclose (f );
1880+ if (status == 0 )
1881+ {
1882+ clipboard_application_id = 4 ;
1883+ return ;
1884+ }
1885+ }
1886+
18741887 errno = 0 ;
18751888 f = popen ("xclip -version 2>&1" , "r" );
18761889 if (f )
@@ -1894,19 +1907,6 @@ check_clipboard_app(Options *opts, bool *force_refresh)
18941907 }
18951908 }
18961909
1897- errno = 0 ;
1898- f = popen ("clip.exe /? 2>&1" , "r" );
1899- if (f )
1900- {
1901- /* first row of output is empty line, just ignore it */
1902- status = pclose (f );
1903- if (status == 0 )
1904- {
1905- clipboard_application_id = 4 ;
1906- return ;
1907- }
1908- }
1909-
19101910 /*
19111911 * pbcopy has not an argument for returning
19121912 * version info, and without arguments, it
You can’t perform that action at this time.
0 commit comments