git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@2404 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Dave Peticolas 2000-06-04 11:26:35 +00:00
parent 25c306d5af
commit 7c9f8a47de

View File

@ -120,12 +120,17 @@ quick_modify (BasicCell *_cell,
if (cell->original == NULL)
cell->original = g_strdup(newval);
else
else if (strcasecmp(cell->original, oldval) == 0)
{
char *original = g_strconcat(cell->original, change, NULL);
g_free(cell->original);
cell->original = original;
}
else
{
g_free(cell->original);
cell->original = NULL;
}
match = xaccGetQuickFillStr(cell->qfRoot, newval);
@ -136,7 +141,7 @@ quick_modify (BasicCell *_cell,
else
retval = newval;
*cursor_position += strlen(change);
*cursor_position = -1;
SET (&(cell->cell), retval);
return retval;