Mercurial > vim
comparison src/ex_cmds.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 | c3a7be75ef16 |
children | d770568e6c98 |
comparison
equal
deleted
inserted
replaced
28450:4d88ce67e7ad | 28451:e015d650ea9f |
---|---|
4958 return; | 4958 return; |
4959 } | 4959 } |
4960 else | 4960 else |
4961 { | 4961 { |
4962 delim = *cmd; // get the delimiter | 4962 delim = *cmd; // get the delimiter |
4963 if (delim) | 4963 ++cmd; // skip delimiter if there is one |
4964 ++cmd; // skip delimiter if there is one | |
4965 pat = cmd; // remember start of pattern | 4964 pat = cmd; // remember start of pattern |
4966 cmd = skip_regexp_ex(cmd, delim, magic_isset(), &eap->arg, NULL, NULL); | 4965 cmd = skip_regexp_ex(cmd, delim, magic_isset(), &eap->arg, NULL, NULL); |
4967 if (cmd[0] == delim) // end delimiter found | 4966 if (cmd[0] == delim) // end delimiter found |
4968 *cmd++ = NUL; // replace it with a NUL | 4967 *cmd++ = NUL; // replace it with a NUL |
4969 } | 4968 } |