Fix Terminal build.
This commit is contained in:
parent
09cbc86d0d
commit
7de99f8341
@ -485,7 +485,7 @@ TermView::_LineOffset(int32 index)
|
||||
|
||||
|
||||
// convert view coordinates to terminal text buffer position
|
||||
inline TermPos
|
||||
TermPos
|
||||
TermView::_ConvertToTerminal(const BPoint &p)
|
||||
{
|
||||
return TermPos(p.x >= 0 ? (int32)p.x / fFontWidth : -1, _LineAt(p.y));
|
||||
@ -2626,14 +2626,14 @@ TermView::_CheckHighlightRegion(int32 row, int32 firstColumn,
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
if (row == highlight->End().y && firstColumn < highlight->End().x
|
||||
&& lastColumn >= highlight->End().x) {
|
||||
// region starts in the highlight, but exceeds the end
|
||||
lastColumn = highlight->End().x - 1;
|
||||
return highlight;
|
||||
}
|
||||
|
||||
|
||||
TermPos pos(firstColumn, row);
|
||||
if (highlight->RangeContains(pos))
|
||||
return highlight;
|
||||
|
@ -176,7 +176,7 @@ private:
|
||||
// point and text offset conversion
|
||||
inline int32 _LineAt(float y);
|
||||
inline float _LineOffset(int32 index);
|
||||
inline TermPos _ConvertToTerminal(const BPoint& point);
|
||||
TermPos _ConvertToTerminal(const BPoint& point);
|
||||
inline BPoint _ConvertFromTerminal(const TermPos& pos);
|
||||
|
||||
inline void _InvalidateTextRect(int32 x1, int32 y1,
|
||||
|
@ -17,6 +17,7 @@
|
||||
#include "TermViewStates.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include <Catalog.h>
|
||||
|
Loading…
Reference in New Issue
Block a user