From 53b8e376337a6271ff4a60514b827781defd06cc Mon Sep 17 00:00:00 2001 From: Josh Barnes Date: Fri, 1 Jan 2016 15:34:34 +0000 Subject: [PATCH] fix for #917, a bug introduced by a typo in 89b7d96ccd87d03226b7977b469e69172c39ef0e --- notebook/static/notebook/js/codecell.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/notebook/static/notebook/js/codecell.js b/notebook/static/notebook/js/codecell.js index d1e7bf4f2..59807b0d8 100644 --- a/notebook/static/notebook/js/codecell.js +++ b/notebook/static/notebook/js/codecell.js @@ -50,12 +50,12 @@ define([ */ CodeMirror.commands.delSpaceToPrevTabStop = function(cm){ var from = cm.getCursor(true), to = cm.getCursor(false), sel = !posEq(from, to); - if (sel) { + if (sel) { var ranges = cm.listSelections(); for (var i = ranges.length - 1; i >= 0; i--) { - var head = ranges[i].head; - var anchor = ranges[i].anchor; - cm.replaceRange("", Pos(head.line, head.ch), CodeMirror.Pos(anchor.line, anchor.ch)); + var head = ranges[i].head; + var anchor = ranges[i].anchor; + cm.replaceRange("", CodeMirror.Pos(head.line, head.ch), CodeMirror.Pos(anchor.line, anchor.ch)); } return; }