Fix generate-new-buffer-name increment typo
Problem reported by Chaitanya Koparkar (Bug#23394). * src/buffer.c (Fgenerate_new_buffer_name): Increment count when generating a new buffer. This fixes a typo I introduced in 2014-04-05T00:04:58Z!eggert@cs.ucla.edu.
This commit is contained in:
parent
25e95b5dd8
commit
4b488a297a
1 changed files with 1 additions and 1 deletions
|
@ -1077,7 +1077,7 @@ is first appended to NAME, to speed up finding a non-existent buffer. */)
|
|||
{
|
||||
char number[INT_BUFSIZE_BOUND (ptrdiff_t) + sizeof "<>"];
|
||||
AUTO_STRING_WITH_LEN (lnumber, number,
|
||||
sprintf (number, "<%"pD"d>", count));
|
||||
sprintf (number, "<%"pD"d>", ++count));
|
||||
Lisp_Object gentemp = concat2 (genbase, lnumber);
|
||||
if (!NILP (Fstring_equal (gentemp, ignore))
|
||||
|| NILP (Fget_buffer (gentemp)))
|
||||
|
|
Loading…
Add table
Reference in a new issue