From 44678c331c295756d8ecb5ba4aa9f7e84fafdc40 Mon Sep 17 00:00:00 2001 From: Nicolas Talle Date: Tue, 24 Oct 2017 11:14:53 +0200 Subject: [PATCH] [view] fix text buffer --- lib/local-history-view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/local-history-view.js b/lib/local-history-view.js index b6b61ae..a6ab9b5 100644 --- a/lib/local-history-view.js +++ b/lib/local-history-view.js @@ -265,7 +265,7 @@ class LocalHistoryView extends SelectListView { file = path.join(localHistoryPath, pathDirName, revFileName); - fsPlus.writeFile(file, buffer.cachedText, function(err) { + fsPlus.writeFile(file, buffer.getText(), function(err) { let messages; if (err) {