summaryrefslogtreecommitdiff
path: root/line-range.h
diff options
context:
space:
mode:
authorLibravatar Felipe Contreras <felipe.contreras@gmail.com>2013-04-10 01:57:57 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-04-14 23:18:58 -0700
commitddc996d767025a4ffcb52a813d32a5095f357e44 (patch)
tree20e970bd65b82eada4e559a47d72a18813c58bd5 /line-range.h
parentcompletion: inline __gitcomp_1 to its sole callsite (diff)
downloadtgif-ddc996d767025a4ffcb52a813d32a5095f357e44.tar.xz
completion: small optimization
No need to calculate a new $c with a space if we are not going to do anything it with it. There should be no functional changes, except that a word "foo " with no suffixes can't be matched. But $cur cannot have a space at the end anyway. So it's safe. Based on the code from SZEDER Gábor. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'line-range.h')
0 files changed, 0 insertions, 0 deletions