Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion vimgrep fails when 'autochdir' is set

Received: by 10.68.222.71 with SMTP id qk7mr6802385pbc.1.1328347296149;
        Sat, 04 Feb 2012 01:21:36 -0800 (PST)
X-BeenThere: vim_dev@googlegroups.com
Received: by 10.68.219.2 with SMTP id pk2ls6998017pbc.5.gmail; Sat, 04 Feb
 2012 01:21:34 -0800 (PST)
MIME-Version: 1.0
Received: by 10.68.132.40 with SMTP id or8mr688064pbb.12.1328347294053; Sat,
 04 Feb 2012 01:21:34 -0800 (PST)
Authentication-Results: ls.google.com; spf=pass (google.com: domain of
 john.b.lit...@gmail.com designates internal as permitted sender)
 smtp.mail=john.b.lit...@gmail.com; dkim=pass
 header...@gmail.com
Received: by ow3g2000pbc.googlegroups.com with HTTP; Sat, 4 Feb 2012 01:21:34
 -0800 (PST)
Date: Sat, 4 Feb 2012 01:21:34 -0800 (PST)
In-Reply-To: <3f32c68a-b932-4011-8b40-fd6793e95328@b10g2000pbd.googlegroups.com>
References: <8a0772aa-ca89-4c59-ba11-e1d4666c69bd@x19g2000yqh.googlegroups.com>
 <3f32c68a-b932-4011-8b40-fd6793e95328@b10g2000pbd.googlegroups.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:10.0)
 Gecko/20100101 Firefox/10.0,gzip(gfe)
Message-ID: <176d04cc-845e-4b24-bd9e-72292125a94f@ow3g2000pbc.googlegroups.com>
Subject: Re: vimgrep fails when 'autochdir' is set
From: John Little <john.b.lit...@gmail.com>
To: vim_dev <vim_dev@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1

Ben

Is there a reason you don't use the ?: operator?

    if (p_acd)
    {
        ea.cmdidx = CMD_cd;
    }
    else
    {
        ea.cmdidx = CMD_lcd;
    }

seems more vim-C-ish written as

    ea.cmdidx = p_acd ? CMD_cd : CMD_lcd;

to me, anyway.

Regards, John