forked from aniani/vim
patch 8.1.1840: Testing: WorkingClipboard() is not accurate
Problem: Testing: WorkingClipboard() is not accurate. Solution: Check feature clipboard_working instead.
This commit is contained in:
@@ -322,13 +322,3 @@ func RunVimPiped(before, after, arguments, pipecmd)
|
||||
endif
|
||||
return 1
|
||||
endfunc
|
||||
|
||||
func WorkingClipboard()
|
||||
if !has('clipboard')
|
||||
return 0
|
||||
endif
|
||||
if has('x11')
|
||||
return $DISPLAY != ""
|
||||
endif
|
||||
return 1
|
||||
endfunc
|
||||
|
||||
Reference in New Issue
Block a user