Commit 3c57e50d authored by Chris Allegretta's avatar Chris Allegretta
Browse files

- winio.c:update_line() - set realdata check to >= 1 && <= 31, lack of > 0...

- winio.c:update_line() - set realdata check to >= 1 && <= 31, lack of > 0 check screwed high ascii chars


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@937 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 3 additions and 3 deletions
+3 -3
...@@ -8,8 +8,8 @@ CVS code - ...@@ -8,8 +8,8 @@ CVS code -
suspending nano on the Hurd. suspending nano on the Hurd.
- winio.c: - winio.c:
update_line() update_line()
- back out check for (realdata[i] < 32) as it will screw high - set realdata check to >= 1 && <= 31, lack of > 0 check screwed
ascii characters. high ascii characters.
- m4/gettext.m4: - m4/gettext.m4:
- Back down to 1.1.3 version. - Back down to 1.1.3 version.
......
...@@ -1027,7 +1027,7 @@ void update_line(filestruct * fileptr, int index) ...@@ -1027,7 +1027,7 @@ void update_line(filestruct * fileptr, int index)
virt_cur_x--; virt_cur_x--;
if (i < mark_beginx) if (i < mark_beginx)
virt_mark_beginx--; virt_mark_beginx--;
} else if (realdata[i] >= 1 && realdata[i] <= 26) { } else if (realdata[i] >= 1 && realdata[i] <= 31) {
/* Treat control characters as ^letter */ /* Treat control characters as ^letter */
fileptr->data[pos++] = '^'; fileptr->data[pos++] = '^';
fileptr->data[pos++] = realdata[i] + 64; fileptr->data[pos++] = realdata[i] + 64;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment