Fix Jump-To-Definition bug: trying to open new file when search fails.

This commit is contained in:
jeffkenton authored and Erik Tierney committed 2013-04-12 13:42:59 -04:00
1 parent 5e11b5abf1
commit 51edab6185
1 file changed
+1 -1
@@ -395,7 +395,7 @@ define(function (require, exports, module) {
if (response.hasOwnProperty("promise")) {
response.promise.done(function (jumpResp) {
if (jumpResp.resultFile !== jumpResp.file) {
if (jumpResp.resultFile && (jumpResp.resultFile !== jumpResp.file)) {
var doc = DocumentManager.getCurrentDocument();
var x = doc.file.fullPath.lastIndexOf("/");