Many opened buffers causes Vim segfault
authorSergey Matveev <stargrave@stargrave.org>
Fri, 7 Aug 2020 13:56:08 +0000 (16:56 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Fri, 7 Aug 2020 13:56:08 +0000 (16:56 +0300)
vim/.vim/plugin/buftabline.vim

index 46f6d33463b54d61d781cd6c99d75a34d992e489..4e48497bed24e1b63643f3c63f56335c40124b71 100644 (file)
@@ -3,7 +3,7 @@ function! BufTabline()
     silent buffers
     redir END
     let bufs = []
-    for buf in split(bufsRaw, "\n")
+    for buf in split(bufsRaw, "\n")[:16]
         let buf = substitute(buf, "\"", "", "g")
         let ents = []
         for ent in split(buf, " ")