Mercurial > vim
comparison src/testdir/shared.vim @ 17686:853afcc375b2 v8.1.1840
patch 8.1.1840: Testing: WorkingClipboard() is not accurate
commit https://github.com/vim/vim/commit/52992feafe8a996fbce29b97ae135abc169aa716
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Aug 12 14:20:33 2019 +0200
patch 8.1.1840: Testing: WorkingClipboard() is not accurate
Problem: Testing: WorkingClipboard() is not accurate.
Solution: Check feature clipboard_working instead.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 12 Aug 2019 14:30:06 +0200 |
parents | 0da9bc55c31a |
children | f084f846442a |
comparison
equal
deleted
inserted
replaced
17685:118242d58076 | 17686:853afcc375b2 |
---|---|
320 if len(a:after) > 0 | 320 if len(a:after) > 0 |
321 call delete('Xafter.vim') | 321 call delete('Xafter.vim') |
322 endif | 322 endif |
323 return 1 | 323 return 1 |
324 endfunc | 324 endfunc |
325 | |
326 func WorkingClipboard() | |
327 if !has('clipboard') | |
328 return 0 | |
329 endif | |
330 if has('x11') | |
331 return $DISPLAY != "" | |
332 endif | |
333 return 1 | |
334 endfunc |