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

Pressing enter on the dash of a markdown list causes an error #835

Closed
ubitux opened this issue Mar 21, 2020 · 3 comments
Closed

Pressing enter on the dash of a markdown list causes an error #835

ubitux opened this issue Mar 21, 2020 · 3 comments
Assignees
Labels
bug good first issue link Related to link and path creation, modification, use [See #478]

Comments

@ubitux
Copy link
Contributor

ubitux commented Mar 21, 2020

How to reproduce:

  • create a new markdown file
  • write - hello in it
  • press <enter> on the -

This causes the following error:

Error detected while processing function vimwiki#base#follow_link[89]..vimwiki#base#normalize_link[3]..vimwiki#markdown_base#normalize_link[5]..SNR>29_normalize_link_syntax_n[51]..vimwiki#base#normalize_link_helper[8]..SNR>28_clean_url:
line    9:
E684: list index out of range: 0

Content of ~/.vimrc:

set nocompatible
filetype plugin on
syntax on
let g:vimwiki_list = [{'path': '~/vimwiki/', 'syntax': 'markdown', 'ext': '.md'}]

:VimwikiShowVersion:

Branch: dev
Revision: 75c557b
Date: 2020-01-08 06:03:40 -0700

The issue is also reproducible with master.

@ranebrown ranebrown added the bug label Mar 23, 2020
@ranebrown
Copy link
Contributor

I've noticed the same behavior.

@tinmarino
Copy link
Member

Fixed: 3b5537f
Now if only a - the link is wiki_root/-.md

@tinmarino
Copy link
Member

Behavior has changed: Nothing happens if press enter with cursor on '-'
See #638 and 9725948

@tinmarino tinmarino added the link Related to link and path creation, modification, use [See #478] label Jul 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug good first issue link Related to link and path creation, modification, use [See #478]
Projects
None yet
Development

No branches or pull requests

3 participants