Mercurial > vim
comparison src/workshop.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 | 778c10516955 |
children | 1a450ce6980c |
comparison
equal
deleted
inserted
replaced
12476:2516383741e6 | 12477:68d7bc045dbe |
---|---|
1263 filename, lnum); */ | 1263 filename, lnum); */ |
1264 load_buffer_by_name(filename, lnum); | 1264 load_buffer_by_name(filename, lnum); |
1265 } | 1265 } |
1266 else | 1266 else |
1267 { | 1267 { |
1268 #ifdef FEAT_WINDOWS | |
1269 /* buf is in a window */ | 1268 /* buf is in a window */ |
1270 if (win != curwin) | 1269 if (win != curwin) |
1271 { | 1270 { |
1272 win_enter(win, False); | 1271 win_enter(win, False); |
1273 /* wsdebug("load_window: window enter %s\n", | 1272 /* wsdebug("load_window: window enter %s\n", |
1274 win->w_buffer->b_sfname); */ | 1273 win->w_buffer->b_sfname); */ |
1275 } | 1274 } |
1276 #endif | |
1277 if (lnum > 0 && win->w_cursor.lnum != lnum) | 1275 if (lnum > 0 && win->w_cursor.lnum != lnum) |
1278 { | 1276 { |
1279 warp_to_pc(lnum); | 1277 warp_to_pc(lnum); |
1280 /* wsdebug("load_window: warp to %s[%d]\n", | 1278 /* wsdebug("load_window: warp to %s[%d]\n", |
1281 win->w_buffer->b_sfname, lnum); */ | 1279 win->w_buffer->b_sfname, lnum); */ |