mirror of
https://github.com/nix-community/nix-on-droid-app.git
synced 2025-12-09 10:31:13 +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).
|
||||
if (mLeftMargin == mCursorCol) {
|
||||
// Jump to previous line if it was auto-wrapped.
|
||||
if (mCursorRow > 0 && mScreen.getLineWrap(mCursorRow-1)) {
|
||||
mScreen.clearLineWrap(mCursorRow - 1);
|
||||
setCursorRowCol(mCursorRow-1,mRightMargin-1);
|
||||
int previousRow = mCursorRow - 1;
|
||||
if (previousRow >= 0 && mScreen.getLineWrap(previousRow)) {
|
||||
mScreen.clearLineWrap(previousRow);
|
||||
setCursorRowCol(previousRow, mRightMargin - 1);
|
||||
}
|
||||
} else {
|
||||
setCursorCol(mCursorCol - 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue