aboutsummaryrefslogtreecommitdiff
path: root/src/undo.c
diff options
context:
space:
mode:
authorFelipe Oliveira Carvalho <felipekde@gmail.com>2014-04-07 22:28:33 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-11 12:57:59 -0300
commitf6b0e335e1f638e3c2d97e6886976d28d3798c32 (patch)
treec44159f894a036baa9e880f53cf3a2c3ba36adb7 /src/undo.c
parent457bb2615154946d273d75e07f5d5a936f50ede0 (diff)
downloadrneovim-f6b0e335e1f638e3c2d97e6886976d28d3798c32.tar.gz
rneovim-f6b0e335e1f638e3c2d97e6886976d28d3798c32.tar.bz2
rneovim-f6b0e335e1f638e3c2d97e6886976d28d3798c32.zip
Remove OOM error handling code after ga_grow() calls
Diffstat (limited to 'src/undo.c')
-rw-r--r--src/undo.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/undo.c b/src/undo.c
index 454d59fbfc..f4e95c43f7 100644
--- a/src/undo.c
+++ b/src/undo.c
@@ -1,4 +1,4 @@
-/* vi:set ts=8 sts=4 sw=4:
+/* vi:set ts=2 sts=2 sw=2:
*
* VIM - Vi IMproved by Bram Moolenaar
*
@@ -2383,8 +2383,7 @@ void ex_undolist(exarg_T *eap)
while (uhp != NULL) {
if (uhp->uh_prev.ptr == NULL && uhp->uh_walk != nomark
&& uhp->uh_walk != mark) {
- if (ga_grow(&ga, 1) == FAIL)
- break;
+ ga_grow(&ga, 1);
vim_snprintf((char *)IObuff, IOSIZE, "%6ld %7ld ",
uhp->uh_seq, changes);
u_add_time(IObuff + STRLEN(IObuff), IOSIZE - STRLEN(IObuff),