Mercurial > vim
comparison src/charset.c @ 32790:fbe3a843b6af v9.0.1711
patch 9.0.1711: dead code in charset.c
Commit: https://github.com/vim/vim/commit/d3515a1e88cf25c1d5eae8faa965b587a124e687
Author: zeertzjq <zeertzjq@outlook.com>
Date: Mon Jul 3 22:00:04 2023 +0800
patch 9.0.1711: dead code in charset.c
Problem: dead code in charset.c
Solution: remove it
linetabsize_col() calls init_chartabsize_arg() with 0 as "lnum", so
cts.cts_has_prop_with_text is always FALSE.
closes: #PR
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 13 Aug 2023 20:15:03 +0200 |
parents | f3987fde6dea |
children | 5d17e74a756d |
comparison
equal
deleted
inserted
replaced
32789:316cc9a2eaeb | 32790:fbe3a843b6af |
---|---|
767 chartabsize_T cts; | 767 chartabsize_T cts; |
768 | 768 |
769 init_chartabsize_arg(&cts, curwin, 0, startcol, s, s); | 769 init_chartabsize_arg(&cts, curwin, 0, startcol, s, s); |
770 while (*cts.cts_ptr != NUL) | 770 while (*cts.cts_ptr != NUL) |
771 cts.cts_vcol += lbr_chartabsize_adv(&cts); | 771 cts.cts_vcol += lbr_chartabsize_adv(&cts); |
772 #ifdef FEAT_PROP_POPUP | |
773 if (cts.cts_has_prop_with_text && cts.cts_ptr == cts.cts_line) | |
774 { | |
775 // check for virtual text in an empty line | |
776 (void)lbr_chartabsize_adv(&cts); | |
777 cts.cts_vcol += cts.cts_cur_text_width; | |
778 } | |
779 #endif | |
780 clear_chartabsize_arg(&cts); | 772 clear_chartabsize_arg(&cts); |
781 return (int)cts.cts_vcol; | 773 return (int)cts.cts_vcol; |
782 } | 774 } |
783 | 775 |
784 /* | 776 /* |