[bug] termdebug button does not work with "set cpoptions=ces$" in vimrc

42 views
Skip to first unread message

Dominique Pellé

unread,
Jul 16, 2018, 4:19:18 PM7/16/18
to vim_dev
Hi

In my ~/.vimrc, I have this line:

set cpoptions=ces$

I noticed that it breaks the buttons in the termdebug plugin.

Steps to reproduce:

1) run:
$ cd vim/src
$ ./vim --clean \
-c 'set cpoptions=ces$' \
-c 'packadd termdebug' \
-c 'Termdebug vim'

2) Press the "Cont" button in the bottom window

3) observe that the "continuer" command is sent to
the gdb terminal window (top window). It should
instead send "continue\r".

Now, I don't remember why I have "set cpoptions=ces$"
in my ~/.vimrc. But probably, it should not break the
"Cont" button of the termdebug plugin.

Regards
Dominique

Bram Moolenaar

unread,
Jul 16, 2018, 6:36:34 PM7/16/18
to vim...@googlegroups.com, Dominique Pellé
Have you tried finding which missing flag matters?

--
hundred-and-one symptoms of being an internet addict:
257. Your "hundred-and-one" lists include well over 101 items, since you
automatically interpret all numbers in hexadecimal notation.
(hex 101 = decimal 257)

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

Christian Brabandt

unread,
Jul 17, 2018, 4:24:04 AM7/17/18
to vim...@googlegroups.com

On Di, 17 Jul 2018, Bram Moolenaar wrote:

>
> Dominique wrote:
>
> > In my ~/.vimrc, I have this line:
> >
> > set cpoptions=ces$
> >
> > I noticed that it breaks the buttons in the termdebug plugin.
> >
> > Steps to reproduce:
> >
> > 1) run:
> > $ cd vim/src
> > $ ./vim --clean \
> > -c 'set cpoptions=ces$' \
> > -c 'packadd termdebug' \
> > -c 'Termdebug vim'
> >
> > 2) Press the "Cont" button in the bottom window
> >
> > 3) observe that the "continuer" command is sent to
> > the gdb terminal window (top window). It should
> > instead send "continue\r".
> >
> > Now, I don't remember why I have "set cpoptions=ces$"
> > in my ~/.vimrc. But probably, it should not break the
> > "Cont" button of the termdebug plugin.
>
> Have you tried finding which missing flag matters?

Missing 'B'. How about this doc patch:

diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt
index c895bf0db..b7b17da93 100644
--- a/runtime/doc/options.txt
+++ b/runtime/doc/options.txt
@@ -2107,10 +2107,11 @@ A jump table for the options with a short description can be found at |Q_op|.
See also |map_bar|.
*cpo-B*
B A backslash has no special meaning in mappings,
- abbreviations and the "to" part of the menu commands.
- Remove this flag to be able to use a backslash like a
- CTRL-V. For example, the command ":map X \<Esc>"
- results in X being mapped to:
+ abbreviations, commands and the "to" part of the
+ |:menu| commands. Remove this flag to be able to use
+ a backslash like a CTRL-V. For example, the command >
+ :map X \<Esc>
+< results in X being mapped to:
'B' included: "\^[" (^[ is a real <Esc>)
'B' excluded: "<Esc>" (5 characters)
('<' excluded in both cases)


Best,
Christian
--
So wie das Ohr Verhältnisse mißt, so berechnet vielleicht die Zunge
Flächen von Körpern.
-- Georg Christoph Lichtenberg
Reply all
Reply to author
Forward
0 new messages