Mercurial > vim
comparison runtime/pack/dist/opt/termdebug/plugin/termdebug.vim @ 14360:e91659ae6614 v8.1.0195
patch 8.1.0195: terminal debugger commands don't always work
commit https://github.com/vim/vim/commit/963c1ad5d072346d9e95d4c3be066b5e03c601d3
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jul 19 02:55:01 2018 +0200
patch 8.1.0195: terminal debugger commands don't always work
Problem: Terminal debugger commands don't always work. (Dominique Pelle)
Solution: Set 'cpo' to its default value when defining commands. (Christian
Brabandt)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 19 Jul 2018 03:00:04 +0200 |
parents | 9339e4dbf6bf |
children | 74470fae51f9 |
comparison
equal
deleted
inserted
replaced
14359:128e4fef2186 | 14360:e91659ae6614 |
---|---|
564 endfor | 564 endfor |
565 endfunc | 565 endfunc |
566 | 566 |
567 " Install commands in the current window to control the debugger. | 567 " Install commands in the current window to control the debugger. |
568 func s:InstallCommands() | 568 func s:InstallCommands() |
569 let save_cpo = &cpo | |
570 set cpo&vim | |
571 | |
569 command Break call s:SetBreakpoint() | 572 command Break call s:SetBreakpoint() |
570 command Clear call s:ClearBreakpoint() | 573 command Clear call s:ClearBreakpoint() |
571 command Step call s:SendCommand('-exec-step') | 574 command Step call s:SendCommand('-exec-step') |
572 command Over call s:SendCommand('-exec-next') | 575 command Over call s:SendCommand('-exec-next') |
573 command Finish call s:SendCommand('-exec-finish') | 576 command Finish call s:SendCommand('-exec-finish') |
601 an 1.210 PopUp.Set\ breakpoint :Break<CR> | 604 an 1.210 PopUp.Set\ breakpoint :Break<CR> |
602 an 1.220 PopUp.Clear\ breakpoint :Clear<CR> | 605 an 1.220 PopUp.Clear\ breakpoint :Clear<CR> |
603 an 1.230 PopUp.Evaluate :Evaluate<CR> | 606 an 1.230 PopUp.Evaluate :Evaluate<CR> |
604 endif | 607 endif |
605 endif | 608 endif |
609 | |
610 let &cpo = save_cpo | |
606 endfunc | 611 endfunc |
607 | 612 |
608 let s:winbar_winids = [] | 613 let s:winbar_winids = [] |
609 | 614 |
610 " Install the window toolbar in the current window. | 615 " Install the window toolbar in the current window. |