From 1b7ca2ed7cf6eab69953d3033a82a2d71fa661c0 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Tue, 2 Sep 2014 23:12:52 +0200 Subject: [PATCH] Fix regex for properly selecting several entries --- autoload/startify.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/startify.vim b/autoload/startify.vim index 8a0c24f..8219fe1 100644 --- a/autoload/startify.vim +++ b/autoload/startify.vim @@ -485,7 +485,7 @@ function! s:set_mark(type) abort let s:marked = {} endif - let [id, path] = matchlist(getline('.'), '\v\[(.{-})\]\s+(.{-})')[1:2] + let [id, path] = matchlist(getline('.'), '\v\[(.{-})\]\s+(.*)')[1:2] let path = fnamemodify(path, ':p') if path =~# '\V\|' || path =~# '^\w\+$'