comparison src/tag.c @ 11238:5b524c2286ce v8.0.0505

patch 8.0.0505: failed window split for :stag not handled commit https://github.com/vim/vim/commit/ba6ad17378ddb9b33412d85174224997b8ff7a4f Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 25 15:03:45 2017 +0100 patch 8.0.0505: failed window split for :stag not handled Problem: Failed window split for :stag not handled. (Coverity CID 99204) Solution: If the split fails skip to the end. (bstaletic, closes https://github.com/vim/vim/issues/1577)
author Christian Brabandt <cb@256bit.org>
date Sat, 25 Mar 2017 15:15:05 +0100
parents d3415ec1cdaf
children c7ba89661c39
comparison
equal deleted inserted replaced
11237:a1e7482ed5cf 11238:5b524c2286ce
3201 3201
3202 /* If it was a CTRL-W CTRL-] command split window now. For ":tab tag" 3202 /* If it was a CTRL-W CTRL-] command split window now. For ":tab tag"
3203 * open a new tab page. */ 3203 * open a new tab page. */
3204 if (postponed_split || cmdmod.tab != 0) 3204 if (postponed_split || cmdmod.tab != 0)
3205 { 3205 {
3206 win_split(postponed_split > 0 ? postponed_split : 0, 3206 if (win_split(postponed_split > 0 ? postponed_split : 0,
3207 postponed_split_flags); 3207 postponed_split_flags) == FAIL)
3208 {
3209 --RedrawingDisabled;
3210 goto erret;
3211 }
3208 RESET_BINDING(curwin); 3212 RESET_BINDING(curwin);
3209 } 3213 }
3210 #endif 3214 #endif
3211 3215
3212 if (keep_help) 3216 if (keep_help)