edit to cursor adjustment, use int rather then short to store the cursor position.
This commit is contained in:
@@ -955,7 +955,7 @@ void txt_jump_left(Text *text, short sel)
|
||||
TextLine **linep, *oldl;
|
||||
int *charp, oldc, oldflags, i;
|
||||
unsigned char oldu;
|
||||
short pos;
|
||||
int pos;
|
||||
|
||||
if (!text) return;
|
||||
if(sel) txt_curs_sel(text, &linep, &charp);
|
||||
@@ -989,7 +989,7 @@ void txt_jump_right(Text *text, short sel)
|
||||
TextLine **linep, *oldl;
|
||||
int *charp, oldc, oldflags, i;
|
||||
unsigned char oldu;
|
||||
short pos;
|
||||
int pos;
|
||||
|
||||
if (!text) return;
|
||||
if(sel) txt_curs_sel(text, &linep, &charp);
|
||||
|
||||
Reference in New Issue
Block a user