view src/which.sh @ 24784:288565c9b4e0 v8.2.2930

patch 8.2.2930: when a popup is visible a mouse move my restart Visual mode Commit: https://github.com/vim/vim/commit/85eee5b969485142b54337cadadd65a38e7d7396 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jun 3 20:34:57 2021 +0200 patch 8.2.2930: when a popup is visible a mouse move my restart Visual mode Problem: When a popup is visible a mouse move my restart Visual mode. Solution: Reset held_button when ending Visual mode. (closes https://github.com/vim/vim/issues/8318)
author Bram Moolenaar <Bram@vim.org>
date Thu, 03 Jun 2021 20:45:03 +0200
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