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 D23F7431FAF for ; Sat, 2 Nov 2013 07:03:49 -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 ER6uc4HMllpS for ; Sat, 2 Nov 2013 07:03:45 -0700 (PDT) Received: from mail-ob0-f181.google.com (mail-ob0-f181.google.com [209.85.214.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id D6394431FD0 for ; Sat, 2 Nov 2013 07:03:04 -0700 (PDT) Received: by mail-ob0-f181.google.com with SMTP id wp4so5657351obc.12 for ; Sat, 02 Nov 2013 07:03:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=robFbcMM5r74qoh+KdBubfMwI08oM2rizYr/tasex3w=; b=EU+EWjD/TJYOrzi9PovGCWs5QHUj3KcrMBxml3nDGbgmh915lS455bnUhQiXCXsX9f mocyAIY0O6fByLw12rpkrUsR77g1d2Vf91aBIbl+RfcJgIVvbx+sJRGIcVpHNQlL2Fob AwbJHiurIBtQqWVFWntPMHiYAC7okgcLDfpWYOgsF3VoIuGeMg9HZI+LHFpYCzRP1Z/I ius261qrW8acuocfULcRCYpUgfx1uyrF34M2ReJc76Rwr7Dcqj8/CB4WMUbg6uE7uhHx ZbygkX2JDyV9ZhndDc3p44zQ9vhSHkFyXLjGhzdPpEbYFSN9nZeCpTeadggaf/W1MjZI qH7Q== X-Received: by 10.60.62.101 with SMTP id x5mr6458128oer.24.1383400984436; Sat, 02 Nov 2013 07:03:04 -0700 (PDT) Received: from localhost (187-162-140-241.static.axtel.net. [187.162.140.241]) by mx.google.com with ESMTPSA id m7sm19937803obo.7.2013.11.02.07.03.02 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 02 Nov 2013 07:03:03 -0700 (PDT) From: Felipe Contreras To: notmuch@notmuchmail.org Subject: [PATCH 11/21] vim: don't execute search if it's cancelled Date: Sat, 2 Nov 2013 07:55:44 -0600 Message-Id: <1383400554-1832-12-git-send-email-felipe.contreras@gmail.com> X-Mailer: git-send-email 1.8.4.2+fc1 In-Reply-To: <1383400554-1832-1-git-send-email-felipe.contreras@gmail.com> References: <1383400554-1832-1-git-send-email-felipe.contreras@gmail.com> 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: Sat, 02 Nov 2013 14:03:50 -0000 Signed-off-by: Felipe Contreras --- vim/notmuch.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vim/notmuch.vim b/vim/notmuch.vim index 64038eb..cf829a6 100644 --- a/vim/notmuch.vim +++ b/vim/notmuch.vim @@ -208,6 +208,9 @@ endfunction function! s:search_search_prompt() let text = input('Search: ') + if text == "" + return + endif setlocal modifiable ruby << EOF $cur_search = VIM::evaluate('text') -- 1.8.4.2+fc1