edit to cursor adjustment, use int rather then short to store the cursor position.

This commit is contained in:
2012-03-07 16:24:25 +00:00
parent 00781668ce
commit c78f02d990
5 changed files with 31 additions and 28 deletions

View File

@@ -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);