Skip to content

Commit a75c0ce

Browse files
committed
Remove newline from status
1 parent a9bdcfa commit a75c0ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/gtm.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function! s:record()
6161
if v:shell_error
6262
echomsg s:no_gtm_err
6363
else
64-
let s:gtm_plugin_status = (g:gtm_plugin_status_enabled ? output : '')
64+
let s:gtm_plugin_status = (g:gtm_plugin_status_enabled ? substitute(output, '\n\+$', '', '') : '')
6565
endif
6666
let s:last_update = localtime()
6767
let s:last_file = fpath

0 commit comments

Comments
 (0)