Fix potential \r in Windows target/repl-port file
This commit is contained in:
parent
b21e531998
commit
8757e41cf3
@ -916,7 +916,7 @@ function! s:leiningen_connect()
|
|||||||
endif
|
endif
|
||||||
let portfile = b:leiningen_root . '/target/repl-port'
|
let portfile = b:leiningen_root . '/target/repl-port'
|
||||||
if getfsize(portfile) > 0 && getftime(portfile) !=# get(s:leiningen_repl_ports, b:leiningen_root, -1)
|
if getfsize(portfile) > 0 && getftime(portfile) !=# get(s:leiningen_repl_ports, b:leiningen_root, -1)
|
||||||
let port = readfile(portfile, 'b', 1)[0]
|
let port = matchstr(readfile(portfile, 'b', 1)[0], '\d\+')
|
||||||
let s:leiningen_repl_ports[b:leiningen_root] = getftime(portfile)
|
let s:leiningen_repl_ports[b:leiningen_root] = getftime(portfile)
|
||||||
try
|
try
|
||||||
call s:register_connection(nrepl#foreplay_connection#open(port), b:leiningen_root)
|
call s:register_connection(nrepl#foreplay_connection#open(port), b:leiningen_root)
|
||||||
|
Loading…
Reference in New Issue
Block a user