A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/neovim/neovim/commit/315858bf67599d39c38628cd2ab8bff1074d7fe4 below:

handle exiting during startup properly (#16790) · neovim/neovim@315858b · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+10

-1

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+10

-1

lines changed Original file line number Diff line number Diff line change

@@ -197,7 +197,7 @@ func s:CloseBuffers()

197 197

endfunc

198 198 199 199

func s:CheckGdbRunning()

200 -

if nvim_get_chan_info(s:gdb_job_id) == {}

200 +

if !s:running

201 201

echoerr string(s:GetCommand()[0]) . ' exited unexpectedly'

202 202

call s:CloseBuffers()

203 203

return ''

@@ -280,6 +280,8 @@ func s:StartDebug_term(dict)

280 280

call s:CloseBuffers()

281 281

return

282 282

endif

283 +

let s:running = v:true

284 +

let s:starting = v:true

283 285

let gdb_job_info = nvim_get_chan_info(s:gdb_job_id)

284 286

let s:gdbbuf = gdb_job_info['buffer']

285 287

let s:gdbwin = win_getid(winnr())

@@ -355,6 +357,8 @@ func s:StartDebug_term(dict)

355 357

sleep 10m

356 358

endwhile

357 359 360 +

let s:starting = v:false

361 + 358 362

" Set the filetype, this can be used to add mappings.

359 363

set filetype=termdebug

360 364

@@ -663,6 +667,11 @@ func s:GetAsmAddr(msg)

663 667

endfunc

664 668 665 669

function s:EndTermDebug(job_id, exit_code, event)

670 +

let s:running = v:false

671 +

if s:starting

672 +

return

673 +

endif

674 + 666 675

if exists('#User#TermdebugStopPre')

667 676

doauto <nomodeline> User TermdebugStopPre

668 677

endif

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4