mirror of
https://github.com/nix-community/nix-on-droid-app.git
synced 2025-12-11 03:21:14 +01:00
Extract variable for clarity
This commit is contained in:
parent
ca71265f23
commit
c6d6a63637
1 changed files with 4 additions and 3 deletions
|
|
@ -477,9 +477,10 @@ public final class TerminalEmulator {
|
||||||
case 8: // Backspace (BS, ^H).
|
case 8: // Backspace (BS, ^H).
|
||||||
if (mLeftMargin == mCursorCol) {
|
if (mLeftMargin == mCursorCol) {
|
||||||
// Jump to previous line if it was auto-wrapped.
|
// Jump to previous line if it was auto-wrapped.
|
||||||
if (mCursorRow > 0 && mScreen.getLineWrap(mCursorRow-1)) {
|
int previousRow = mCursorRow - 1;
|
||||||
mScreen.clearLineWrap(mCursorRow - 1);
|
if (previousRow >= 0 && mScreen.getLineWrap(previousRow)) {
|
||||||
setCursorRowCol(mCursorRow-1,mRightMargin-1);
|
mScreen.clearLineWrap(previousRow);
|
||||||
|
setCursorRowCol(previousRow, mRightMargin - 1);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
setCursorCol(mCursorCol - 1);
|
setCursorCol(mCursorCol - 1);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue