Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relations in command cause get(vimtex#cmd#get_current(), 'name') return 0 #2446

Closed
pilgrimlyieu opened this issue Jul 31, 2022 · 2 comments
Closed
Labels

Comments

@pilgrimlyieu
Copy link

Description

Example code

$$
\ce{a > b}
$$

Steps to reproduce

$$
\ce{<cursor>a</cursor> > b}
$$

Put the cursor on a and execute this command :echo get(vimtex#cmd#get_current(), 'name'), The result is \ce.

$$
\ce{a > <cursor>b</cursor>}
$$

Then put the cursor on b and do that again. The result is 0 now.

Expected behavior

Both result is \ce.

Actual behavior

The result before relations is \ce, after is 0.

Do you use a latexmkrc file?

No

VimtexInfo

System info:
  OS: DESKTOP-U7CVG0I (Microsoft Windows 10 Æóҵ°æ)
  Vim version: VIM 9.0 (1-96)
  Has clientserver: true
  Servername: GVIM

VimTeX project: a
  base: a.tex
  root: C:\Users\Administrator\vimfiles\pythonx\mdtex
  tex: C:\Users\Administrator\vimfiles\pythonx\mdtex\a.tex
  main parser: current file
  document class: 
  compiler: latexmk
    engine: -pdf
    options:
      -verbose
      -file-line-error
      -shell-escape
      -synctex=1
      -interaction=nonstopmode
    build_dir: out
    callback: 1
    continuous: 1
    executable: latexmk
  viewer: General
  qf method: LaTeX logfile
lervag added a commit that referenced this issue Jul 31, 2022
@lervag
Copy link
Owner

lervag commented Jul 31, 2022

Thanks, this should be fixed now!

@lervag lervag closed this as completed Jul 31, 2022
@pilgrimlyieu
Copy link
Author

Thanks, this should be fixed now!

Great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants