Skip to content

Commit

Permalink
feat(deps): Unpin text-buffer@^6.1.3 💪
Browse files Browse the repository at this point in the history
  • Loading branch information
dbkaplun committed Jun 3, 2015
1 parent f22e992 commit 986b081
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions lib/ui/Editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ var Promise = require('bluebird');
var fs = Promise.promisifyAll(require('fs'));
var extname = require('path').extname;
var lodash = require('lodash');
require('es6-set/implement'); // required for text-buffer
var TextBuffer = require('text-buffer');
var Point = require('text-buffer/lib/point');
var Range = require('text-buffer/lib/range');
Expand Down Expand Up @@ -582,13 +583,13 @@ Editor.prototype._initHandlers = function () {
newSelection.plantTail();
}
}
selection.update(newSelection.toParams());
selection.setRange(newSelection.getRange(), {reversed: newSelection.isReversed()});
newSelection.destroy();
});

self.textBuf.on('path-changed', function () { self.language(extname(self.textBuf.getPath()).slice(1)); });

selection.on('changed', function () {
selection.emitter.on('did-change', function () {
var cursor = self.visiblePos(selection.getHeadPosition());
if (self.data.updatePreferredX) self.data.preferredCursorX = cursor.column; // preferred X when moving vertically
self._markMatches();
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"blessed": "0.1.56",
"bluebird": "^2.3.6",
"cheerio": "^0.15.0",
"es6-set": "^0.1.1",
"highlight.js": "^8.2.0",
"iconv-lite": "^0.4.4",
"lazy.js": "^0.3.2",
Expand All @@ -33,7 +34,7 @@
"node-clap": "^0.0.4",
"rc": "^1.0.0",
"slap-clipboard-plugin": "^0.0.10",
"text-buffer": "4.1.2",
"text-buffer": "^6.1.3",
"traverse": "^0.6.6",
"update-notifier": "^0.3.0",
"winston": "^0.7.3",
Expand Down

0 comments on commit 986b081

Please sign in to comment.