Mercurial > vim
comparison src/ex_cmds.c @ 21518:0b448762ebbd v8.2.1309
patch 8.2.1309: build failure with tiny version
Commit: https://github.com/vim/vim/commit/461f21242a8fc7f2fe9d1c723741eeda45f0ac72
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jul 28 20:25:47 2020 +0200
patch 8.2.1309: build failure with tiny version
Problem: Build failure with tiny version.
Solution: Add #ifdef.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 28 Jul 2020 20:30:05 +0200 |
parents | c7b2ce90c2de |
children | 2f2e528c5782 |
comparison
equal
deleted
inserted
replaced
21517:2227972e6697 | 21518:0b448762ebbd |
---|---|
3174 int indent = 0; | 3174 int indent = 0; |
3175 char_u *p; | 3175 char_u *p; |
3176 int vcol; | 3176 int vcol; |
3177 int empty = (curbuf->b_ml.ml_flags & ML_EMPTY); | 3177 int empty = (curbuf->b_ml.ml_flags & ML_EMPTY); |
3178 | 3178 |
3179 #ifdef FEAT_EVAL | |
3179 if (not_in_vim9(eap) == FAIL) | 3180 if (not_in_vim9(eap) == FAIL) |
3180 return; | 3181 return; |
3181 | 3182 #endif |
3182 // the ! flag toggles autoindent | 3183 // the ! flag toggles autoindent |
3183 if (eap->forceit) | 3184 if (eap->forceit) |
3184 curbuf->b_p_ai = !curbuf->b_p_ai; | 3185 curbuf->b_p_ai = !curbuf->b_p_ai; |
3185 | 3186 |
3186 // First autoindent comes from the line we start on | 3187 // First autoindent comes from the line we start on |
3318 void | 3319 void |
3319 ex_change(exarg_T *eap) | 3320 ex_change(exarg_T *eap) |
3320 { | 3321 { |
3321 linenr_T lnum; | 3322 linenr_T lnum; |
3322 | 3323 |
3324 #ifdef FEAT_EVAL | |
3323 if (not_in_vim9(eap) == FAIL) | 3325 if (not_in_vim9(eap) == FAIL) |
3324 return; | 3326 return; |
3325 | 3327 #endif |
3326 if (eap->line2 >= eap->line1 | 3328 if (eap->line2 >= eap->line1 |
3327 && u_save(eap->line1 - 1, eap->line2 + 1) == FAIL) | 3329 && u_save(eap->line1 - 1, eap->line2 + 1) == FAIL) |
3328 return; | 3330 return; |
3329 | 3331 |
3330 // the ! flag toggles autoindent | 3332 // the ! flag toggles autoindent |