Changeset 3249
- Timestamp:
- Apr 30, 2007, 1:16:42 AM (18 years ago)
- Location:
- trunk/essentials/app-shells/bash
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/essentials/app-shells/bash/lib/readline/display.c
r3231 r3249 1984 1984 { 1985 1985 int len; 1986 char *pmt ;1986 char *pmt, *p; 1987 1987 1988 1988 rl_save_prompt (); 1989 1989 1990 if (saved_local_prompt == 0) 1990 /* We've saved the prompt, and can do anything with the various prompt 1991 strings we need before they're restored. We want the unexpanded 1992 portion of the prompt string after any final newline. */ 1993 p = rl_prompt ? strrchr (rl_prompt, '\n') : 0; 1994 if (p == 0) 1991 1995 { 1992 1996 len = (rl_prompt && *rl_prompt) ? strlen (rl_prompt) : 0; … … 1999 2003 else 2000 2004 { 2001 len = *saved_local_prompt ? strlen (saved_local_prompt) : 0; 2005 p++; 2006 len = strlen (p); 2002 2007 pmt = (char *)xmalloc (len + 2); 2003 2008 if (len) 2004 strcpy (pmt, saved_local_prompt);2009 strcpy (pmt, p); 2005 2010 pmt[len] = pchar; 2006 2011 pmt[len+1] = '\0'; 2007 local_prompt = savestring (pmt); 2008 prompt_last_invisible = saved_last_invisible; 2009 prompt_visible_length = saved_visible_length + 1; 2010 } 2011 2012 } 2013 2014 /* will be overwritten by expand_prompt, called from rl_message */ 2012 2015 prompt_physical_chars = saved_physical_chars + 1; 2013 2014 2016 return pmt; 2015 2017 } -
trunk/essentials/app-shells/bash/patchlevel.h
r3248 r3249 26 26 looks for to find the patch level (for the sccs version string). */ 27 27 28 #define PATCHLEVEL 1 328 #define PATCHLEVEL 14 29 29 30 30 #endif /* _PATCHLEVEL_H_ */
Note:
See TracChangeset
for help on using the changeset viewer.