Skip to content

Commit

Permalink
fix(js/term_view): fix crash when user right-click while selecting all
Browse files Browse the repository at this point in the history
  • Loading branch information
IepIweidieng authored and robertabcd committed Apr 5, 2020
1 parent 4b6218a commit 88e3562
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/term_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ TermView.prototype = {
},

getRowLineElement: function(node) {
for (let r = node; r != r.parentNode; r = r.parentNode) {
for (let r = node; r && r != r.parentNode; r = r.parentNode) {
if (r instanceof Element &&
r.getAttribute('data-type') == 'bbsline') {
return r;
Expand Down

0 comments on commit 88e3562

Please sign in to comment.