Re: [PATCH 1/2] Aggregate config errors from source-file commands

2012-11-26 Thread Thomas Adam
Hi, On Mon, Nov 19, 2012 at 10:46:05AM +, Nicholas Marriott wrote: > This breaks the case where I source a bad file from the command prompt, > for example: > > echo 'set -g abc' >~/.tmux.conf > tmux new > q > C-b : source ~/.tmux.conf > > I guess you just don't reset the state after displayi

Re: [PATCH 1/2] Aggregate config errors from source-file commands

2012-11-19 Thread Nicholas Marriott
This breaks the case where I source a bad file from the command prompt, for example: echo 'set -g abc' >~/.tmux.conf tmux new q C-b : source ~/.tmux.conf I guess you just don't reset the state after displaying it. I've applied your other diff to add show_cfg_causes. Cheers On Thu, Nov 15, 201

[PATCH 1/2] Aggregate config errors from source-file commands

2012-11-15 Thread Thomas Adam
At the moment it's possible to trample configuration file error reporting by having an error in fileB which is sourced from fileA at startup. If there were any errors in fileA these would be lost because fileB somewhat treads on the state of fileA. Because source-file uses the same configuration