Mercurial > vim
view pixmaps/gen-inline-pixbufs.sh @ 19936:ce463840c826 v8.2.0524
patch 8.2.0524: Win32: searching for file matches is slow
Commit: https://github.com/vim/vim/commit/c74fbfedfa2df384cca5f6763e2c9e5c0ca6d513
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Apr 6 22:56:28 2020 +0200
patch 8.2.0524: Win32: searching for file matches is slow
Problem: Win32: searching for file matches is slow.
Solution: Instead of making another round to find any short filename, check
for the short name right away. Avoid using an ordinary file like a
directory. (Nir Lichtman, closes #5883)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 06 Apr 2020 23:00:29 +0200 |
parents | 3fc0f57ecb91 |
children | d4faa2c5211b |
line wrap: on
line source
#! /bin/sh prefix=stock_ list= for file in "$@" do name=`echo "$file" | sed 's|-|_|g; s|^.*/||; s|\..*$||'` list="$list $prefix$name $file" done gdk-pixbuf-csource --raw --static --build-list $list