Mercurial > vim
view src/which.sh @ 29552:89a97f70e8eb v9.0.0117
patch 9.0.0117: text of removed textprop with text is not freed
Commit: https://github.com/vim/vim/commit/3a4cd39d476474e20e88ebf120ca6070cc0d0072
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jul 30 22:17:18 2022 +0100
patch 9.0.0117: text of removed textprop with text is not freed
Problem: Text of removed textprop with text is not freed.
Solution: Free the text when the property is removed. Reduce the array size
to ignore NULLs at the end.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 30 Jul 2022 23:30:05 +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