If this._selection is defined but this._selection.m1 or this._selection.m2 is undefined, it will crash on line 232 of lib/ui/blessed-xterm/blessed-xterm.js.
I found this issue when I was trying to use lib/ui/blessed-xterm/blessed-xterm.js in my own project when I drag mouse from one blessed screen to an adjacent blessed screen.
I don't know whether you have such case in kubebox, but from the code logic, we can't assume m1 and m2 are defined when this._selection is defined.
If
this._selection
is defined butthis._selection.m1
orthis._selection.m2
is undefined, it will crash on line 232 oflib/ui/blessed-xterm/blessed-xterm.js
.I found this issue when I was trying to use
lib/ui/blessed-xterm/blessed-xterm.js
in my own project when I drag mouse from one blessed screen to an adjacent blessed screen.I don't know whether you have such case in kubebox, but from the code logic, we can't assume
m1
andm2
are defined whenthis._selection
is defined.