Skip to content

Commit

Permalink
[view] fix text buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolab committed Oct 24, 2017
1 parent 9ae844a commit 44678c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/local-history-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

2 comments on commit 44678c3

@nasa42
Copy link
Contributor

@nasa42 nasa42 commented on 44678c3 Nov 23, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume, this now stores the current state of file in latest history rather than the previous state of file? (I.e., now the file and its latest history will always have same contents)?

@Nicolab
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes the current file and the latest history have the same contents.

Please sign in to comment.