Mercurial > vim
comparison src/charset.c @ 29453:decd0a51b99f v9.0.0068
patch 9.0.0068: build fails with tiny features
Commit: https://github.com/vim/vim/commit/fe3fb6e1e6c90e9bada05518a13a72b3fc2f6a98
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jul 25 18:35:15 2022 +0100
patch 9.0.0068: build fails with tiny features
Problem: Build fails with tiny features.
Solution: Add #ifdef.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 25 Jul 2022 19:45:02 +0200 |
parents | 057c26b5c33a |
children | 1ae3e2d691a0 |
comparison
equal
deleted
inserted
replaced
29452:9b6b16b4007e | 29453:decd0a51b99f |
---|---|
958 | 958 |
959 /* | 959 /* |
960 * Free any allocated item in "cts". | 960 * Free any allocated item in "cts". |
961 */ | 961 */ |
962 void | 962 void |
963 clear_chartabsize_arg(chartabsize_T *cts) | 963 clear_chartabsize_arg(chartabsize_T *cts UNUSED) |
964 { | 964 { |
965 #ifdef FEAT_PROP_POPUP | |
965 if (cts->cts_text_prop_count > 0) | 966 if (cts->cts_text_prop_count > 0) |
966 vim_free(cts->cts_text_props); | 967 vim_free(cts->cts_text_props); |
968 #endif | |
967 } | 969 } |
968 | 970 |
969 /* | 971 /* |
970 * Like chartabsize(), but also check for line breaks on the screen and text | 972 * Like chartabsize(), but also check for line breaks on the screen and text |
971 * properties that insert text. | 973 * properties that insert text. |
1021 win_lbr_chartabsize( | 1023 win_lbr_chartabsize( |
1022 chartabsize_T *cts, | 1024 chartabsize_T *cts, |
1023 int *headp UNUSED) | 1025 int *headp UNUSED) |
1024 { | 1026 { |
1025 win_T *wp = cts->cts_win; | 1027 win_T *wp = cts->cts_win; |
1028 #ifdef FEAT_PROP_POPUP | |
1026 char_u *line = cts->cts_line; // start of the line | 1029 char_u *line = cts->cts_line; // start of the line |
1030 #endif | |
1027 char_u *s = cts->cts_ptr; | 1031 char_u *s = cts->cts_ptr; |
1028 colnr_T vcol = cts->cts_vcol; | 1032 colnr_T vcol = cts->cts_vcol; |
1029 #ifdef FEAT_LINEBREAK | 1033 #ifdef FEAT_LINEBREAK |
1030 int c; | 1034 int c; |
1031 int size; | 1035 int size; |