Mercurial > vim
comparison src/testdir/shared.vim @ 17391:8a43873df941 v8.1.1694
patch 8.1.1694: the RUN_VIM variable is longer than needed
commit https://github.com/vim/vim/commit/41a82604453080d0011f281532582d3bd360df4a
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jul 14 21:54:26 2019 +0200
patch 8.1.1694: the RUN_VIM variable is longer than needed
Problem: The RUN_VIM variable is longer than needed.
Solution: Shorten RUN_VIM. (Daniel Hahler, closes https://github.com/vim/vim/issues/4643)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 14 Jul 2019 22:00:05 +0200 |
parents | 3e2e998ce0db |
children | 0da9bc55c31a |
comparison
equal
deleted
inserted
replaced
17390:0ca3dc4c1e6d | 17391:8a43873df941 |
---|---|
259 let cmd = substitute(cmd, '-u \f\+', '-u ' . name, '') | 259 let cmd = substitute(cmd, '-u \f\+', '-u ' . name, '') |
260 if cmd !~ '-u '. name | 260 if cmd !~ '-u '. name |
261 let cmd = cmd . ' -u ' . name | 261 let cmd = cmd . ' -u ' . name |
262 endif | 262 endif |
263 let cmd .= ' --not-a-term' | 263 let cmd .= ' --not-a-term' |
264 let cmd = substitute(cmd, 'VIMRUNTIME=.*VIMRUNTIME;', '', '') | 264 let cmd = substitute(cmd, 'VIMRUNTIME=\S\+', '', '') |
265 | 265 |
266 " If using valgrind, make sure every run uses a different log file. | 266 " If using valgrind, make sure every run uses a different log file. |
267 if cmd =~ 'valgrind.*--log-file=' | 267 if cmd =~ 'valgrind.*--log-file=' |
268 let cmd = substitute(cmd, '--log-file=\(^\s*\)', '--log-file=\1.' . g:valgrind_cnt, '') | 268 let cmd = substitute(cmd, '--log-file=\(^\s*\)', '--log-file=\1.' . g:valgrind_cnt, '') |
269 let g:valgrind_cnt += 1 | 269 let g:valgrind_cnt += 1 |