File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -48,12 +48,6 @@ U.cmotion = {
4848 V = 5 ,
4949}
5050
51- --- Print a msg on stderr
52- --- @param msg string
53- function U .eprint (msg )
54- vim .notify (' Comment :: ' .. msg , vim .log .levels .ERROR )
55- end
56-
5751--- Check whether the line is empty
5852--- @param ln string
5953--- @return boolean
174168--- @return string | boolean
175169function U .unwrap_cstr (cstr )
176170 local lcs , rcs = cstr :match (' (.*)%%s(.*)' )
171+
177172 if not (lcs or rcs ) then
178- return U .eprint ((" Invalid commentstring: %q. Run ':h commentstring' for help." ):format (cstr ))
173+ return vim .notify (
174+ (" [Comment] Invalid commentstring - %q. Run ':h commentstring' for help." ):format (cstr ),
175+ vim .log .levels .ERROR
176+ )
179177 end
180178
181179 -- Return false if a part is empty, otherwise trim it
You can’t perform that action at this time.
0 commit comments