fix: compilation error

This commit is contained in:
imkiva
2018-05-27 11:50:35 +08:00
parent ce246c382e
commit fcdf9f5703
4 changed files with 5 additions and 5 deletions

View File

@ -403,8 +403,8 @@ public final class TerminalEmulator {
} else {
mouseButton = pressed ? mouseButton : 3; // 3 for release of all buttons.
// Clip to screen, and clip to the limits of 8-bit data.
boolean out_of_bounds = column > 255 - 32 || row > 255 - 32;
if (!out_of_bounds) {
boolean outOfBounds = column > 255 - 32 || row > 255 - 32;
if (!outOfBounds) {
byte[] data = {'\033', '[', 'M', (byte) (32 + mouseButton), (byte) (32 + column), (byte) (32 + row)};
mSession.write(data, 0, data.length);
}

View File

@ -72,7 +72,7 @@ class NeoTabDecorator(val context: NeoTermActivity) : TabSwitcherDecorator() {
VIEW_TYPE_TERM -> {
val termTab = tab as TermTab
termTab.toolbar = toolbar
val terminalView = findViewById<TerminalView>(R.id.terminal_view)
val terminalView = findViewById<TerminalView>(R.id.terminal_view)
if (isQuickPreview) {
bindTerminalView(termTab, terminalView, null)
} else {