Mercurial > vim
comparison src/edit.c @ 14465:78d4375b6bb2 v8.1.0246
patch 8.1.0246: build failure without the +eval feature
commit https://github.com/vim/vim/commit/ee380ae376692529b6f1805185015cb4717c6940
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Aug 7 19:32:52 2018 +0200
patch 8.1.0246: build failure without the +eval feature
Problem: Build failure without the +eval feature.
Solution: Add #ifdef
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 07 Aug 2018 19:45:05 +0200 |
parents | 3b87daa5c37a |
children | c71d65c3672f |
comparison
equal
deleted
inserted
replaced
14464:b5bf6d9baa24 | 14465:78d4375b6bb2 |
---|---|
1720 #endif | 1720 #endif |
1721 ) | 1721 ) |
1722 { | 1722 { |
1723 aco_save_T aco; | 1723 aco_save_T aco; |
1724 | 1724 |
1725 #ifdef FEAT_EVAL | |
1725 // Sync undo when the autocommand calls setline() or append(), so that | 1726 // Sync undo when the autocommand calls setline() or append(), so that |
1726 // it can be undone separately. | 1727 // it can be undone separately. |
1727 u_sync_once = 2; | 1728 u_sync_once = 2; |
1729 #endif | |
1728 | 1730 |
1729 // save and restore curwin and curbuf, in case the autocmd changes them | 1731 // save and restore curwin and curbuf, in case the autocmd changes them |
1730 aucmd_prepbuf(&aco, curbuf); | 1732 aucmd_prepbuf(&aco, curbuf); |
1731 apply_autocmds(EVENT_TEXTCHANGEDI, NULL, NULL, FALSE, curbuf); | 1733 apply_autocmds(EVENT_TEXTCHANGEDI, NULL, NULL, FALSE, curbuf); |
1732 aucmd_restbuf(&aco); | 1734 aucmd_restbuf(&aco); |
1733 curbuf->b_last_changedtick = CHANGEDTICK(curbuf); | 1735 curbuf->b_last_changedtick = CHANGEDTICK(curbuf); |
1734 | 1736 |
1737 #ifdef FEAT_EVAL | |
1735 if (u_sync_once == 1) | 1738 if (u_sync_once == 1) |
1736 ins_need_undo = TRUE; | 1739 ins_need_undo = TRUE; |
1737 u_sync_once = 0; | 1740 u_sync_once = 0; |
1741 #endif | |
1738 } | 1742 } |
1739 | 1743 |
1740 #ifdef FEAT_INS_EXPAND | 1744 #ifdef FEAT_INS_EXPAND |
1741 /* Trigger TextChangedP if b_changedtick differs. When the popupmenu closes | 1745 /* Trigger TextChangedP if b_changedtick differs. When the popupmenu closes |
1742 * TextChangedI will need to trigger for backwards compatibility, thus use | 1746 * TextChangedI will need to trigger for backwards compatibility, thus use |