diff --git a/src/revision.h b/src/revision.h index dc1c99a..0b1949a 100644 --- a/src/revision.h +++ b/src/revision.h @@ -1 +1 @@ -#define REVISION "v2.6.1-24-g4957c11" +#define REVISION "v2.6.1-25-g81c2936" diff --git a/src/winio.c b/src/winio.c index a0a040e..98d97c2 100644 --- a/src/winio.c +++ b/src/winio.c @@ -2285,7 +2285,12 @@ void edit_draw(filestruct *fileptr, const char *converted, int #ifndef DISABLE_LINE_NUM if (ISSET(LINE_NUM)) { - margin = intlen(openfile->filebot->lineno)+3; + if (margin!=intlen(openfile->filebot->lineno)+3) + { + refresh_needed = TRUE; + margin = intlen(openfile->filebot->lineno)+3; + } + //Wouldn't it be cool if we added an option for hex representation? wattron(edit,A_BOLD); mvwprintw(edit,line,margin-(intlen(((long)openfile->edittop->lineno)+line)+2),"%i│",((long)openfile->edittop->lineno)+line); @@ -2293,8 +2298,12 @@ void edit_draw(filestruct *fileptr, const char *converted, int } else if (ISSET(HEX_LINE_NUM)) { - margin = hexlen(openfile->filebot->lineno)+3; - //Wouldn't it be cool if we added an option for hex representation? + if (margin!=hexlen(openfile->filebot->lineno)+3) + { + refresh_needed = TRUE; + margin = hexlen(openfile->filebot->lineno)+3; + } + wattron(edit,A_BOLD); mvwprintw(edit,line,margin-(hexlen(((long)openfile->edittop->lineno)+line)+2),"%X│",((long)openfile->edittop->lineno)+line); wattroff(edit,A_BOLD);