From aba33190b664fbba4fd81ee25d8ad1b3de085236 Mon Sep 17 00:00:00 2001 From: Kien N Date: Sat, 14 Apr 2012 13:10:22 +0700 Subject: [PATCH] Allow remarking regular lines if needed --- autoload/ctrlp.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/ctrlp.vim b/autoload/ctrlp.vim index 1c7f336..85e2262 100644 --- a/autoload/ctrlp.vim +++ b/autoload/ctrlp.vim @@ -1272,7 +1272,8 @@ endf fu! s:remarksigns() if !s:dosigns() | retu | en for ic in range(1, len(s:lines)) - let key = s:dictindex(s:marked, fnamemodify(s:lines[ic - 1], ':p')) + let line = s:ispath ? fnamemodify(s:lines[ic - 1], ':p') : s:lines[ic - 1] + let key = s:dictindex(s:marked, line) if key > 0 exe 'sign place' key 'line='.ic.' name=ctrlpmark buffer='.s:bufnr en