Mercurial > vim
view runtime/macros/less.sh @ 27344:44e82999b4e1 v8.2.4200
patch 8.2.4200: some tests do not clean up properly
Commit: https://github.com/vim/vim/commit/7e765a39b795d5331bf2d4927b41df7b78915af9
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Mon Jan 24 11:40:37 2022 +0000
patch 8.2.4200: some tests do not clean up properly
Problem: Some tests do not clean up properly.
Solution: Delete created files. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/9611)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 24 Jan 2022 12:45:03 +0100 |
parents | 1b584a6f446c |
children |
line wrap: on
line source
#!/bin/sh # Shell script to start Vim with less.vim. # Read stdin if no arguments were given and stdin was redirected. if test -t 1; then if test $# = 0; then if test -t 0; then echo "Missing filename" 1>&2 exit fi vim --cmd 'let no_plugin_maps = 1' -c 'runtime! macros/less.vim' - else vim --cmd 'let no_plugin_maps = 1' -c 'runtime! macros/less.vim' "$@" fi else # Output is not a terminal, cat arguments or stdin if test $# = 0; then if test -t 0; then echo "Missing filename" 1>&2 exit fi cat else cat "$@" fi fi