From 8cc67d54e7e7c61b666fedfa786911a88cbde16c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 4 Oct 2019 18:10:28 +0200 Subject: [PATCH] Bind callback to this in save_current Introduced by r c9c4f1426d34 issue8709 --- src/screen.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/screen.js b/src/screen.js index 86017a52e5..16319019d0 100644 --- a/src/screen.js +++ b/src/screen.js @@ -1450,7 +1450,7 @@ return this.current_view.display().then(function() { this.set_cursor(); return jQuery.Deferred().reject(); - }); + }.bind(this)); } var display = function() { // Return the original promise to keep succeed/rejected state