Mercurial > vim
comparison src/mouse.c @ 28942:6cdf55afaae9 v8.2.4993
patch 8.2.4993: smart/C/lisp indenting is optional
Commit: https://github.com/vim/vim/commit/8e145b82464a21ee4fdf7948f04e2a1d505f8bfa
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat May 21 20:17:31 2022 +0100
patch 8.2.4993: smart/C/lisp indenting is optional
Problem: smart/C/lisp indenting is optional, which makes the code more
complex, while it only reduces the executable size a bit.
Solution: Graduate FEAT_CINDENT, FEAT_SMARTINDENT and FEAT_LISP.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 21 May 2022 21:30:04 +0200 |
parents | 2d726d5a6405 |
children | 755ab148288b |
comparison
equal
deleted
inserted
replaced
28941:f17de8647585 | 28942:6cdf55afaae9 |
---|---|
1081 if (curwin != new_curwin && win_valid(new_curwin)) | 1081 if (curwin != new_curwin && win_valid(new_curwin)) |
1082 { | 1082 { |
1083 curwin = new_curwin; | 1083 curwin = new_curwin; |
1084 curbuf = curwin->w_buffer; | 1084 curbuf = curwin->w_buffer; |
1085 } | 1085 } |
1086 # ifdef FEAT_CINDENT | |
1087 set_can_cindent(TRUE); | 1086 set_can_cindent(TRUE); |
1088 # endif | |
1089 } | 1087 } |
1090 | 1088 |
1091 // redraw status lines (in case another window became active) | 1089 // redraw status lines (in case another window became active) |
1092 redraw_statuslines(); | 1090 redraw_statuslines(); |
1093 } | 1091 } |
1171 } | 1169 } |
1172 | 1170 |
1173 if (!EQUAL_POS(curwin->w_cursor, tpos)) | 1171 if (!EQUAL_POS(curwin->w_cursor, tpos)) |
1174 { | 1172 { |
1175 start_arrow(&tpos); | 1173 start_arrow(&tpos); |
1176 # ifdef FEAT_CINDENT | |
1177 set_can_cindent(TRUE); | 1174 set_can_cindent(TRUE); |
1178 # endif | |
1179 } | 1175 } |
1180 } | 1176 } |
1181 | 1177 |
1182 /* | 1178 /* |
1183 * Return TRUE if "c" is a mouse key. | 1179 * Return TRUE if "c" is a mouse key. |