~libbls/libbls/0.3

« back to all changes in this revision

Viewing changes to src/buffer_edit.c

  • Committer: Alexandros Frantzis
  • Date: 2011-08-14 14:34:01 UTC
  • Revision ID: alf82@freemail.gr-20110814143401-3nhd5an96t0pq0zj
Add bless_buffer_get_revision_id().

Show diffs side-by-side

added added

removed removed

Lines of Context:
122
122
                        if (err)
123
123
                                goto_error(err, on_error_other);
124
124
                }
125
 
                else
 
125
                else {
 
126
                        buf->first_rev_id = buf->next_rev_id++;
126
127
                        buffer_action_free(action);
 
128
                }
127
129
 
128
130
                return 0;
129
131
        }
150
152
                if (err)
151
153
                        goto_error(err, on_error_other);
152
154
        }
153
 
        else
 
155
        else {
 
156
                buf->first_rev_id = buf->next_rev_id++;
154
157
                buffer_action_free(action);
 
158
        }
155
159
 
156
160
        action_list_clear(buf->redo_list);
157
161
        buf->redo_list_size = 0;
213
217
                        if (err)
214
218
                                goto_error(err, on_error_other);
215
219
                }
216
 
                else
 
220
                else {
 
221
                        buf->first_rev_id = buf->next_rev_id++;
217
222
                        buffer_action_free(action);
 
223
                }
218
224
 
219
225
                return 0;
220
226
        }
241
247
                if (err)
242
248
                        goto_error(err, on_error_other);
243
249
        }
244
 
        else
 
250
        else {
 
251
                buf->first_rev_id = buf->next_rev_id++;
245
252
                buffer_action_free(action);
 
253
        }
246
254
 
247
255
        action_list_clear(buf->redo_list);
248
256
        buf->redo_list_size = 0;
300
308
                        if (err)
301
309
                                goto_error(err, on_error_other);
302
310
                }
303
 
                else
 
311
                else {
 
312
                        buf->first_rev_id = buf->next_rev_id++;
304
313
                        buffer_action_free(action);
 
314
                }
305
315
 
306
316
                return 0;
307
317
        }
328
338
                if (err)
329
339
                        goto_error(err, on_error_other);
330
340
        }
331
 
        else
 
341
        else {
 
342
                buf->first_rev_id = buf->next_rev_id++;
332
343
                buffer_action_free(action);
 
344
        }
333
345
 
334
346
        action_list_clear(buf->redo_list);
335
347
        buf->redo_list_size = 0;