File tree 2 files changed +14
-14
lines changed
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
465
465
## Export & Clipboard
466
466
467
467
For 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).
469
469
470
470
` pspg ` try to translate unicode symbol '∅' to NULL every time. If you don't use special setting
471
471
by ` \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)
1871
1871
1872
1872
* force_refresh = true;
1873
1873
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
+
1874
1887
errno = 0 ;
1875
1888
f = popen ("xclip -version 2>&1" , "r" );
1876
1889
if (f )
@@ -1894,19 +1907,6 @@ check_clipboard_app(Options *opts, bool *force_refresh)
1894
1907
}
1895
1908
}
1896
1909
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
-
1910
1910
/*
1911
1911
* pbcopy has not an argument for returning
1912
1912
* version info, and without arguments, it
You can’t perform that action at this time.
0 commit comments