Mercurial > vim
view src/which.sh @ 31954:d8fdafc4b390 v9.0.1309
patch 9.0.1309: scrolling two lines with even line count and 'scrolloff' set
Commit: https://github.com/vim/vim/commit/1d6539cf36a7b6d1afe76fb6316fe662f543bf60
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Feb 14 17:41:20 2023 +0000
patch 9.0.1309: scrolling two lines with even line count and 'scrolloff' set
Problem: Scrolling two lines with even line count and 'scrolloff' set.
Solution: Adjust how the topline is computed. (closes https://github.com/vim/vim/issues/10545)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 14 Feb 2023 18:45: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