summaryrefslogtreecommitdiff
path: root/src/workshop.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-06-27 01:15:55 +0200
committerBram Moolenaar <Bram@vim.org>2010-06-27 01:15:55 +0200
commita800b42975f7a62282cb90d8c61ef3cff2fe810a (patch)
tree9ecc9705a77dcc23b87ba2dffb9a06765625519a /src/workshop.c
parentd69980f9dd1a538e9ba4313616f3be452c95206d (diff)
downloadvim-git-a800b42975f7a62282cb90d8c61ef3cff2fe810a.tar.gz
Add file save counter to undo information. Add undotree() function.
Diffstat (limited to 'src/workshop.c')
-rw-r--r--src/workshop.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/workshop.c b/src/workshop.c
index 334e6afff..c9c52954d 100644
--- a/src/workshop.c
+++ b/src/workshop.c
@@ -820,7 +820,6 @@ workshop_toolbar_button(
char namebuf[BUFSIZ];
static int tbid = 1;
char_u *p;
- int len;
#ifdef WSDEBUG_TRACE
if (WSDLEVEL(WS_TRACE_VERBOSE))
@@ -861,12 +860,10 @@ workshop_toolbar_button(
if (file != NULL && *file != NUL)
{
p = vim_strsave_escaped((char_u *)file, (char_u *)" ");
- len = STRLEN(cbuf);
- vim_snprintf(cbuf + len, sizeof(cbuf) - len, "icon=%s ", p);
+ vim_snprintf_add(cbuf, sizeof(cbuf), "icon=%s ", p);
vim_free(p);
}
- len = STRLEN(cbuf);
- vim_snprintf(cbuf + len, sizeof(cbuf) - len,"1.%d %s :wsverb %s<CR>",
+ vim_snprintf_add(cbuf, sizeof(cbuf),"1.%d %s :wsverb %s<CR>",
tbpri, namebuf, verb);
/* Define the menu item */