Mercurial > vim
comparison src/misc1.c @ 28451:e015d650ea9f v8.2.4750
patch 8.2.4750: small pieces of dead code
Commit: https://github.com/vim/vim/commit/b836658a04ee5456deca2ee523de9efe51252da3
Author: =?UTF-8?q?Dundar=20G=C3=B6c?= <gocdundar@gmail.com>
Date: Thu Apr 14 20:43:56 2022 +0100
patch 8.2.4750: small pieces of dead code
Problem: Small pieces of dead code.
Solution: Remove the dead code. (Goc Dundar, closes https://github.com/vim/vim/issues/10190) Rename the
qftf_cb struct member to avoid confusion.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 14 Apr 2022 21:45:02 +0200 |
parents | f4d2dcfd18ac |
children | 52ef65c0637f |
comparison
equal
deleted
inserted
replaced
28450:4d88ce67e7ad | 28451:e015d650ea9f |
---|---|
1574 STRCPY(dst, var); | 1574 STRCPY(dst, var); |
1575 dstlen -= (int)STRLEN(var); | 1575 dstlen -= (int)STRLEN(var); |
1576 c = (int)STRLEN(var); | 1576 c = (int)STRLEN(var); |
1577 // if var[] ends in a path separator and tail[] starts | 1577 // if var[] ends in a path separator and tail[] starts |
1578 // with it, skip a character | 1578 // with it, skip a character |
1579 if (*var != NUL && after_pathsep(dst, dst + c) | 1579 if (after_pathsep(dst, dst + c) |
1580 #if defined(BACKSLASH_IN_FILENAME) || defined(AMIGA) | 1580 #if defined(BACKSLASH_IN_FILENAME) || defined(AMIGA) |
1581 && dst[-1] != ':' | 1581 && dst[-1] != ':' |
1582 #endif | 1582 #endif |
1583 && vim_ispathsep(*tail)) | 1583 && vim_ispathsep(*tail)) |
1584 ++tail; | 1584 ++tail; |