Free Hero Mesh

Check-in [0da86bb01b]
Login
This is a mirror of the main repository for Free Hero Mesh. New tickets and changes will not be accepted at this mirror.
Overview
Comment:Correct a problem in the string editor when inserting graphic control characters.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 0da86bb01bbfdcae5e0e94a126c52294da0a2a1e
User & Date: user on 2021-09-05 06:11:35
Other Links: manifest | tags
Context
2021-09-06
19:18
Improve README file including more frequently questions. check-in: b295172546 user: user tags: trunk
2021-09-05
06:11
Correct a problem in the string editor when inserting graphic control characters. check-in: 0da86bb01b user: user tags: trunk
2021-08-30
06:28
Some improvements to README file check-in: 185096251c user: user tags: trunk
Changes

Modified edit.c from [3b166365cb] to [3589f5cda0].

1308
1309
1310
1311
1312
1313
1314

1315
1316
1317
1318
1319
1320
1321
  goto redraw;
  specialchar:
  if(sz>=0x2FFA) goto redraw;
  i=pick_character();
  if(i>=32) goto addch;
  if(o && *cp==31) memmove(cp,cp+1,(s+sz)-cp);
  if(!*cp) cp[1]=0;

  memmove(cp+1,cp,(s+sz+1)-cp);
  if(!o) memmove(cp+1,cp,(s+sz+1)-cp);
  *cp=31;
  cp[1]=i;
  c++;
  goto redraw;
}







>







1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
  goto redraw;
  specialchar:
  if(sz>=0x2FFA) goto redraw;
  i=pick_character();
  if(i>=32) goto addch;
  if(o && *cp==31) memmove(cp,cp+1,(s+sz)-cp);
  if(!*cp) cp[1]=0;
  s[sz+2]=0;
  memmove(cp+1,cp,(s+sz+1)-cp);
  if(!o) memmove(cp+1,cp,(s+sz+1)-cp);
  *cp=31;
  cp[1]=i;
  c++;
  goto redraw;
}