Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id D511F431FC4 for ; Fri, 10 Oct 2014 08:56:22 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nhtpQxI3evbR for ; Fri, 10 Oct 2014 08:56:17 -0700 (PDT) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 1EE8F431FBC for ; Fri, 10 Oct 2014 08:56:16 -0700 (PDT) Received: by mail-lb0-f182.google.com with SMTP id z11so3379100lbi.27 for ; Fri, 10 Oct 2014 08:56:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:message-id:from:to:subject:mime-version:content-type :content-disposition:content-transfer-encoding; bh=sdFd/+yoD6Pac9tVoB5gETeK4F/DdGFO9hEoBN8jH+4=; b=MWTCfwdt1Uh2F4I/SrvS73w0E/9aBnLs99mjL1j82wtmZIQsOlgGOjhw3UDMJNlI97 KJgDRXr5vGsnUpMgNsKLIvRdA9ZsIvARe2QCM2WPMLChXQaWt8gpI49Ms1jksRdtOxLH 0+fMoZ+9NCKCoj+t48GhjevQCiweJnrQkEboCzDAVsyPdQct+XOZY2zlPXYw7aALuhMV Rw1ycUxE3TGPPPK0rO5Ua8tDTQh9ZnhxJywlBKj0OuIBLMDj9y9XBXkn26TX2sW3Vuj+ rKqoyibx5UuEdRFQ7XeayEmypPalMnyDjDFXKi2mjJh6FIbykawVUknDvgVgBjijVrOE Uwiw== X-Received: by 10.112.134.101 with SMTP id pj5mr5604571lbb.47.1412956575064; Fri, 10 Oct 2014 08:56:15 -0700 (PDT) Received: from localhost (p5B00C9E6.dip0.t-ipconnect.de. [91.0.201.230]) by mx.google.com with ESMTPSA id kz7sm1938682lac.10.2014.10.10.08.56.13 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 10 Oct 2014 08:56:14 -0700 (PDT) Date: Fri, 10 Oct 2014 17:56:23 +0200 Message-ID: <20141010175623.GB7504@TP_L520.localdomain> From: Franz Fellner To: notmuch@notmuchmail.org Subject: VIM: search_refresh limits message count to 2 * window.height MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Oct 2014 15:56:23 -0000 The reason is that StagedRender.is_ready depends on last_render, which get's set to VIM::Buffer.count() in StagedRender::do_next. I do not (yet) know what exactly happens, but after the first call to search refresh last_render never get's less than 2*2*window.height. That means once you do search_refresh StagedRender never will be ready - is_ready returns false, so s:show_cursor_moved never will advance the StagedRender. I am trying to understand the code, but it's a hard time for me ;)