Applied patch st-focus

This commit is contained in:
2024-04-23 00:58:41 +05:30
parent 1d10c72d94
commit f7a61840a3
6 changed files with 600 additions and 38 deletions

15
st.c
View File

@@ -203,7 +203,6 @@ static void tsetscroll(int, int);
static void tswapscreen(void);
static void tsetmode(int, int, const int *, int);
static int twrite(const char *, int, int);
static void tfulldirt(void);
static void tcontrolcode(uchar );
static void tdectest(char );
static void tdefutf8(char);
@@ -441,20 +440,6 @@ tlinehistlen(int y)
return i;
}
int
tlinehistlen(int y)
{
int i = term.col;
if (TLINE_HIST(y)[i - 1].mode & ATTR_WRAP)
return i;
while (i > 0 && TLINE_HIST(y)[i - 1].u == ' ')
--i;
return i;
}
void
selstart(int col, int row, int snap)
{