mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
Fix a few minor issues (#473)
Changes: - Fixed two xtrace test failures introduced in commit cfc8744c. - The definition of _use_ntfork_tcpgrp in xec.c is now dependent on SHOPT_SPAWN being defined (re: 8e9ed5be). - Removed many unnecessary newlines and fixed various typos.
This commit is contained in:
parent
7b99b7cf04
commit
8fc8c2f51c
28 changed files with 11 additions and 56 deletions
|
|
@ -69,7 +69,6 @@ static Lex_t *savelex;
|
|||
{
|
||||
switch(c)
|
||||
{
|
||||
|
||||
case cntl('A'): return('A');
|
||||
case cntl('B'): return('B');
|
||||
case cntl('C'): return('C');
|
||||
|
|
|
|||
|
|
@ -205,7 +205,6 @@ int ed_emacsread(void *context, int fd,char *buff,int scend, int reedit)
|
|||
}
|
||||
raw = 1;
|
||||
/* This mess in case the read system call fails */
|
||||
|
||||
ed_setup(ep->ed,fd,reedit);
|
||||
#if !SHOPT_MULTIBYTE
|
||||
out = (genchar*)buff;
|
||||
|
|
@ -715,9 +714,7 @@ update:
|
|||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
process:
|
||||
|
||||
if (c == (-1))
|
||||
{
|
||||
lookahead = 0;
|
||||
|
|
@ -1414,7 +1411,6 @@ static void search(Emacs_t* ep,genchar *out,int direction)
|
|||
}
|
||||
skip:
|
||||
i = genlen(string);
|
||||
|
||||
if(ep->prevdirection == -2 && i!=2 || direction!=1)
|
||||
ep->prevdirection = -1;
|
||||
if (direction < 1)
|
||||
|
|
@ -1583,7 +1579,6 @@ static void draw(register Emacs_t *ep,Draw_t option)
|
|||
**********************/
|
||||
|
||||
i = ncursor - nscreen;
|
||||
|
||||
if ((ep->offset && i<=ep->offset)||(i >= (ep->offset+w_size)))
|
||||
{
|
||||
/* Center the cursor on the screen */
|
||||
|
|
@ -1600,12 +1595,9 @@ static void draw(register Emacs_t *ep,Draw_t option)
|
|||
|
||||
nptr = &nscreen[ep->offset];
|
||||
sptr = ep->screen;
|
||||
|
||||
i = w_size;
|
||||
|
||||
while (i-- > 0)
|
||||
{
|
||||
|
||||
if (*nptr == '\0')
|
||||
{
|
||||
*(nptr + 1) = '\0';
|
||||
|
|
@ -1638,7 +1630,6 @@ static void draw(register Emacs_t *ep,Draw_t option)
|
|||
if(ep->ed->e_multiline && option == REFRESH)
|
||||
ed_setcursor(ep->ed, ep->screen, ep->ed->e_peol, ep->ed->e_peol, -1);
|
||||
|
||||
|
||||
/******************
|
||||
|
||||
Screen overflow checks
|
||||
|
|
|
|||
|
|
@ -178,7 +178,6 @@ static int sh_checkaudit(History_t *hp, const char *name, char *logbuf, size_t l
|
|||
done:
|
||||
sh_close(fd);
|
||||
return(r);
|
||||
|
||||
}
|
||||
#endif /* SHOPT_AUDIT */
|
||||
|
||||
|
|
@ -1014,7 +1013,6 @@ int hist_copy(char *s1,int size,int command,int line)
|
|||
}
|
||||
*s1++ = c;
|
||||
}
|
||||
|
||||
}
|
||||
sfseek(hp->histfp,(off_t)0,SEEK_END);
|
||||
if(s1==0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue