Merge pull request #1319 from BDisp/clipboard-linux-fix

Fixes #1318. Ensures that the OS clipboard is always sets.
This commit is contained in:
Charlie Kindel
2021-05-30 07:32:45 -06:00
committed by GitHub
12 changed files with 726 additions and 107 deletions

View File

@@ -1102,7 +1102,11 @@ namespace Terminal.Gui {
} else if (RuntimeInformation.IsOSPlatform (OSPlatform.OSX)) {
Clipboard = new MacOSXClipboard ();
} else {
Clipboard = new CursesClipboard ();
if (CursesDriver.Is_WSL_Platform ()) {
Clipboard = new WSLClipboard ();
}else{
Clipboard = new CursesClipboard ();
}
}
}