Skip to content

Commit b5782f6

Browse files
committed
EmulatorView: fix off-by-one error in linkification bounds
Links currently don't extend to the last character of the link text (this is easy to check, either with a pixel-accurate pointer device such as a Bluetooth mouse or in the emulator) -- fix this.
1 parent 59a9060 commit b5782f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/emulatorview/src/jackpal/androidterm/emulatorview/EmulatorView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ private int createLinks(int row)
315315
{
316316
URLSpan url = urls[urlNum];
317317
int spanStart = textToLinkify.getSpanStart(url);
318-
int spanEnd = textToLinkify.getSpanEnd(url) - 1;
318+
int spanEnd = textToLinkify.getSpanEnd(url);
319319

320320
//Build accurate indices for multi-line links
321321
int startRow = spanStart / mColumns;

0 commit comments

Comments
 (0)