Mercurial > vim
comparison src/tag.c @ 9949:30be4b26a37e v7.4.2248
commit https://github.com/vim/vim/commit/358308dd99abdd56c6540339e505585d8db7bdfe
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Aug 24 21:21:26 2016 +0200
patch 7.4.2248
Problem: When cancelling the :ptjump prompt a preview window is opened for
a following command.
Solution: Reset g_do_tagpreview. (Hirohito Higashi) Add a test. Avoid that
the test runner gets stuck in trying to close a window.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 24 Aug 2016 21:30:06 +0200 |
parents | bb00c661b3a4 |
children | 4aead6a9b7a9 |
comparison
equal
deleted
inserted
replaced
9948:f3f309428117 | 9949:30be4b26a37e |
---|---|
1076 /* Only store the new index when using the tagstack and it's valid. */ | 1076 /* Only store the new index when using the tagstack and it's valid. */ |
1077 if (use_tagstack && tagstackidx <= curwin->w_tagstacklen) | 1077 if (use_tagstack && tagstackidx <= curwin->w_tagstacklen) |
1078 curwin->w_tagstackidx = tagstackidx; | 1078 curwin->w_tagstackidx = tagstackidx; |
1079 #ifdef FEAT_WINDOWS | 1079 #ifdef FEAT_WINDOWS |
1080 postponed_split = 0; /* don't split next time */ | 1080 postponed_split = 0; /* don't split next time */ |
1081 # ifdef FEAT_QUICKFIX | |
1082 g_do_tagpreview = 0; /* don't do tag preview next time */ | |
1083 # endif | |
1081 #endif | 1084 #endif |
1082 | 1085 |
1083 #ifdef FEAT_CSCOPE | 1086 #ifdef FEAT_CSCOPE |
1084 return jumped_to_tag; | 1087 return jumped_to_tag; |
1085 #else | 1088 #else |