Skip to content

Commit 951a5bc

Browse files
committed
Include app name in :Start title
1 parent df00b63 commit 951a5bc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

autoload/rails.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,8 @@ function! s:app_start_rails_command(cmd, ...) dict abort
927927
call s:push_chdir(1)
928928
try
929929
if exists(':Start') == 2
930-
exe 'Start'.(a:0 && a:1 ? '!' : '').' -title=rails\ '.title.' '.cmd
930+
let title = escape(fnamemodify(self.path(), ':t').' '.title, ' ')
931+
exe 'Start'.(a:0 && a:1 ? '!' : '').' -title='.title.' '.cmd
931932
elseif has("win32")
932933
exe "!start ".cmd
933934
else

0 commit comments

Comments
 (0)