summaryrefslogtreecommitdiffstats
path: root/runtime/pack
diff options
context:
space:
mode:
authorYegappan Lakshmanan <4298407+yegappan@users.noreply.github.com>2023-08-17 13:28:33 -0700
committerGitHub <noreply@github.com>2023-08-17 22:28:33 +0200
commitbfc461f756c9b933ea6c5d776244667b6b1a84ef (patch)
tree7c365ea6deeb003903203537cb696c2e239e8f30 /runtime/pack
parentad0c442f1fcc6fe9c433777ee3e5b9e6addc6d69 (diff)
Use string interpolation (#12823)
Diffstat (limited to 'runtime/pack')
-rw-r--r--runtime/pack/dist/opt/cfilter/plugin/cfilter.vim8
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/pack/dist/opt/cfilter/plugin/cfilter.vim b/runtime/pack/dist/opt/cfilter/plugin/cfilter.vim
index 7a65630786..7a71de4764 100644
--- a/runtime/pack/dist/opt/cfilter/plugin/cfilter.vim
+++ b/runtime/pack/dist/opt/cfilter/plugin/cfilter.vim
@@ -1,7 +1,7 @@
vim9script
# cfilter.vim: Plugin to filter entries from a quickfix/location list
-# Last Change: Jun 30, 2022
+# Last Change: August 16, 2023
# Maintainer: Yegappan Lakshmanan (yegappan AT yahoo DOT com)
# Version: 2.0
#
@@ -31,11 +31,11 @@ def Qf_filter(qf: bool, searchpat: string, bang: string)
if qf
Xgetlist = function('getqflist')
Xsetlist = function('setqflist')
- cmd = ':Cfilter' .. bang
+ cmd = $':Cfilter{bang}'
else
Xgetlist = function('getloclist', [0])
Xsetlist = function('setloclist', [0])
- cmd = ':Lfilter' .. bang
+ cmd = $':Lfilter{bang}'
endif
firstchar = searchpat[0]
@@ -62,7 +62,7 @@ def Qf_filter(qf: bool, searchpat: string, bang: string)
endif
items = filter(Xgetlist(), Cond)
- title = cmd .. ' /' .. pat .. '/'
+ title = $'{cmd} /{pat}/'
Xsetlist([], ' ', {title: title, items: items})
enddef