Mercurial > vim
comparison src/window.c @ 1090:9a3b65713280 v7.0.216
updated for version 7.0-216
author | vimboss |
---|---|
date | Sun, 11 Mar 2007 14:48:29 +0000 |
parents | 32c1b275ba64 |
children | 5d5a41a95347 |
comparison
equal
deleted
inserted
replaced
1089:965805580982 | 1090:9a3b65713280 |
---|---|
3288 * Returns OK if a new tab page was created, FAIL otherwise. | 3288 * Returns OK if a new tab page was created, FAIL otherwise. |
3289 */ | 3289 */ |
3290 int | 3290 int |
3291 may_open_tabpage() | 3291 may_open_tabpage() |
3292 { | 3292 { |
3293 int n = cmdmod.tab; | 3293 int n = (cmdmod.tab == 0) ? postponed_split_tab : cmdmod.tab; |
3294 | 3294 |
3295 if (cmdmod.tab != 0) | 3295 if (n != 0) |
3296 { | 3296 { |
3297 cmdmod.tab = 0; /* reset it to avoid doing it twice */ | 3297 cmdmod.tab = 0; /* reset it to avoid doing it twice */ |
3298 postponed_split_tab = 0; | |
3298 return win_new_tabpage(n); | 3299 return win_new_tabpage(n); |
3299 } | 3300 } |
3300 return FAIL; | 3301 return FAIL; |
3301 } | 3302 } |
3302 | 3303 |