Deglobalize prompt_pos

Leonard den Ottolander leonard at den.ottolander.nl
Thu Nov 18 14:41:46 UTC 2004


Hi, 

The use of prompt_pos as a global static variable in subshell.c seems a
bit odd. I've ripped the parameter and it's references out, except of
course in read_subshell_prompt(). This patch also has the "already
running a command" fix integrated.

Things seem to be fine on my box (Fedora Core 1). Please test this patch
on other platforms and tell me if this simplification is correct.

Leonard.

-- 
mount -t life -o ro /dev/dna /genetic/research

-------------- next part --------------
A non-text attachment was scrubbed...
Name: prompt_pos+subshell_state.patch
Type: text/x-patch
Size: 3617 bytes
Desc: not available
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20041118/bbbee803/attachment.bin>


More information about the mc-devel mailing list