Mercurial > vim
comparison src/ex_docmd.c @ 23062:fa87b0d1277b v8.2.2077
patch 8.2.2077: build failure with small features
Commit: https://github.com/vim/vim/commit/a452b808b4da2d272ca4a50865eb8ca89a58f239
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Dec 1 21:47:59 2020 +0100
patch 8.2.2077: build failure with small features
Problem: Build failure with small features.
Solution: Add #ifdef.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 01 Dec 2020 22:00:04 +0100 |
parents | 57b6427c18e4 |
children | a916fca16d4b |
comparison
equal
deleted
inserted
replaced
23061:b3adc3982d17 | 23062:fa87b0d1277b |
---|---|
7992 sst->save_State = State; | 7992 sst->save_State = State; |
7993 sst->save_insertmode = p_im; | 7993 sst->save_insertmode = p_im; |
7994 sst->save_finish_op = finish_op; | 7994 sst->save_finish_op = finish_op; |
7995 sst->save_opcount = opcount; | 7995 sst->save_opcount = opcount; |
7996 sst->save_reg_executing = reg_executing; | 7996 sst->save_reg_executing = reg_executing; |
7997 sst->save_script_version = current_sctx.sc_version; | |
7998 | 7997 |
7999 msg_scroll = FALSE; // no msg scrolling in Normal mode | 7998 msg_scroll = FALSE; // no msg scrolling in Normal mode |
8000 restart_edit = 0; // don't go to Insert mode | 7999 restart_edit = 0; // don't go to Insert mode |
8001 p_im = FALSE; // don't use 'insertmode' | 8000 p_im = FALSE; // don't use 'insertmode' |
8001 #ifdef FEAT_EVAL | |
8002 sst->save_script_version = current_sctx.sc_version; | |
8002 current_sctx.sc_version = 1; // not in Vim9 script | 8003 current_sctx.sc_version = 1; // not in Vim9 script |
8004 #endif | |
8003 | 8005 |
8004 /* | 8006 /* |
8005 * Save the current typeahead. This is required to allow using ":normal" | 8007 * Save the current typeahead. This is required to allow using ":normal" |
8006 * from an event handler and makes sure we don't hang when the argument | 8008 * from an event handler and makes sure we don't hang when the argument |
8007 * ends with half a command. | 8009 * ends with half a command. |
8021 p_im = sst->save_insertmode; | 8023 p_im = sst->save_insertmode; |
8022 finish_op = sst->save_finish_op; | 8024 finish_op = sst->save_finish_op; |
8023 opcount = sst->save_opcount; | 8025 opcount = sst->save_opcount; |
8024 reg_executing = sst->save_reg_executing; | 8026 reg_executing = sst->save_reg_executing; |
8025 msg_didout |= sst->save_msg_didout; // don't reset msg_didout now | 8027 msg_didout |= sst->save_msg_didout; // don't reset msg_didout now |
8028 #ifdef FEAT_EVAL | |
8026 current_sctx.sc_version = sst->save_script_version; | 8029 current_sctx.sc_version = sst->save_script_version; |
8030 #endif | |
8027 | 8031 |
8028 // Restore the state (needed when called from a function executed for | 8032 // Restore the state (needed when called from a function executed for |
8029 // 'indentexpr'). Update the mouse and cursor, they may have changed. | 8033 // 'indentexpr'). Update the mouse and cursor, they may have changed. |
8030 State = sst->save_State; | 8034 State = sst->save_State; |
8031 #ifdef CURSOR_SHAPE | 8035 #ifdef CURSOR_SHAPE |