From 24dd8d6532bddc3b2f0cbc18c111b608082ce486 Mon Sep 17 00:00:00 2001
From: Chris Allegretta <chrisa@asty.org>
Date: Mon, 6 Nov 2000 05:45:48 +0000
Subject: [PATCH] Oops, dont beep so much ;)  Yes when we find one match and
 fill in buf, no otherwise

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@276 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
---
 files.c     | 5 +++--
 po/nano.pot | 4 ++--
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/files.c b/files.c
index 0866e743..395db856 100644
--- a/files.c
+++ b/files.c
@@ -667,6 +667,7 @@ int input_tab(char *buf, int place, int lastWasTab)
 	    strncpy(buf + pos, matches[0] + pos,
 		    strlen(matches[0]) - pos);
 	    newplace += strlen(matches[0]) - pos;
+	    beep();
 	    break;
 	default:
 	    /* Check to see if all matches share a beginning, and if so
@@ -746,8 +747,8 @@ int input_tab(char *buf, int place, int lastWasTab)
 	    }
 	    free(foo);
 	    wrefresh(edit);
-	}
-	beep();
+	} else
+	    beep();
 
     }
 
diff --git a/po/nano.pot b/po/nano.pot
index b356a59a..c3de4cc1 100644
--- a/po/nano.pot
+++ b/po/nano.pot
@@ -6,7 +6,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2000-11-06 00:41-0500\n"
+"POT-Creation-Date: 2000-11-06 00:45-0500\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -107,7 +107,7 @@ msgstr ""
 msgid "File exists, OVERWRITE ?"
 msgstr ""
 
-#: files.c:741
+#: files.c:742
 msgid "(more)"
 msgstr ""
 
-- 
GitLab