Skip to content

Commit

Permalink
Exclude gutter from history text picking #236
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo Peng committed Aug 2, 2019
1 parent e391490 commit 51ef6f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sos_notebook/kernel.js
Original file line number Diff line number Diff line change
Expand Up @@ -1980,7 +1980,7 @@ define([
// if index = cells.length, we are getting the first cell
let text = cells[
cells.length - this.history_index
].getElementsByClassName("input_area")[0].innerText;
].getElementsByClassName("input_area")[0].getElementsByClassName('CodeMirror-sizer')[0].innerText;
// set text
this.cell.set_text(text.replace(/\u200B$/g, ""));
}
Expand Down

0 comments on commit 51ef6f7

Please sign in to comment.