mirror of
https://github.com/neovim/neovim.git
synced 2025-10-04 17:06:30 +00:00
vim-patch:8.1.0105: all tab stops are the same
Problem: All tab stops are the same.
Solution: Add the variable tabstop feature. (Christian Brabandt,
closes vim/vim#2711)
04958cbaf2
This commit is contained in:
@@ -890,8 +890,11 @@ static colnr_T hardcopy_line(prt_settings_T *psettings, int page_line, prt_pos_T
|
||||
* Appropriately expand any tabs to spaces.
|
||||
*/
|
||||
if (line[col] == TAB || tab_spaces != 0) {
|
||||
if (tab_spaces == 0)
|
||||
tab_spaces = (int)(curbuf->b_p_ts - (print_pos % curbuf->b_p_ts));
|
||||
if (tab_spaces == 0) {
|
||||
tab_spaces = tabstop_padding(print_pos,
|
||||
curbuf->b_p_ts,
|
||||
curbuf->b_p_vts_array);
|
||||
}
|
||||
|
||||
while (tab_spaces > 0) {
|
||||
need_break = mch_print_text_out((char_u *)" ", 1);
|
||||
|
Reference in New Issue
Block a user