Mercurial > vim
comparison src/netbeans.c @ 12477:68d7bc045dbe v8.0.1118
patch 8.0.1118: FEAT_WINDOWS adds a lot of #ifdefs
commit https://github.com/vim/vim/commit/4033c55eca575777718c0701e26635a0cc47d907
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Sep 16 20:54:51 2017 +0200
patch 8.0.1118: FEAT_WINDOWS adds a lot of #ifdefs
Problem: FEAT_WINDOWS adds a lot of #ifdefs while it is nearly always
enabled and only adds 7% to the binary size of the tiny build.
Solution: Graduate FEAT_WINDOWS.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 16 Sep 2017 21:00:06 +0200 |
parents | 67cf0d45b006 |
children | 3ca08bf99396 |
comparison
equal
deleted
inserted
replaced
12476:2516383741e6 | 12477:68d7bc045dbe |
---|---|
1752 buf->bufp->b_changed = FALSE; | 1752 buf->bufp->b_changed = FALSE; |
1753 } | 1753 } |
1754 buf->modified = buf->bufp->b_changed; | 1754 buf->modified = buf->bufp->b_changed; |
1755 if (prev_b_changed != buf->bufp->b_changed) | 1755 if (prev_b_changed != buf->bufp->b_changed) |
1756 { | 1756 { |
1757 #ifdef FEAT_WINDOWS | |
1758 check_status(buf->bufp); | 1757 check_status(buf->bufp); |
1759 redraw_tabline = TRUE; | 1758 redraw_tabline = TRUE; |
1760 #endif | |
1761 #ifdef FEAT_TITLE | 1759 #ifdef FEAT_TITLE |
1762 maketitle(); | 1760 maketitle(); |
1763 #endif | 1761 #endif |
1764 update_screen(0); | 1762 update_screen(0); |
1765 } | 1763 } |
2281 nb_set_curbuf(buf_T *buf) | 2279 nb_set_curbuf(buf_T *buf) |
2282 { | 2280 { |
2283 if (curbuf != buf) { | 2281 if (curbuf != buf) { |
2284 if (buf_jump_open_win(buf) != NULL) | 2282 if (buf_jump_open_win(buf) != NULL) |
2285 return; | 2283 return; |
2286 # ifdef FEAT_WINDOWS | |
2287 if ((swb_flags & SWB_USETAB) && buf_jump_open_tab(buf) != NULL) | 2284 if ((swb_flags & SWB_USETAB) && buf_jump_open_tab(buf) != NULL) |
2288 return; | 2285 return; |
2289 # endif | |
2290 set_curbuf(buf, DOBUF_GOTO); | 2286 set_curbuf(buf, DOBUF_GOTO); |
2291 } | 2287 } |
2292 } | 2288 } |
2293 | 2289 |
2294 /* | 2290 /* |