Mercurial > vim
view src/which.sh @ 31433:c9da70c1e6d5 v9.0.1049
patch 9.0.1049: crash when opening a very small terminal window
Commit: https://github.com/vim/vim/commit/67578e5bcf7404d40d42876b738b72e68add1a3e
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Dec 12 13:47:44 2022 +0000
patch 9.0.1049: crash when opening a very small terminal window
Problem: Crash when opening a very small terminal window.
Solution: Instead of crashing fix the cursor position. (closes https://github.com/vim/vim/issues/11697)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 12 Dec 2022 15:00:05 +0100 |
parents | 3fc0f57ecb91 |
children |
line wrap: on
line source
#! /bin/sh # # which.sh -- find where an executable is located. It's here because the # "which" command is not supported everywhere. Used by Makefile. IFS=":" for ac_dir in $PATH; do if test -f "$ac_dir/$1"; then echo "$ac_dir/$1" break fi done