Skip to content

Commit

Permalink
fix renerocksai#104: crash on auto-fill with hypenated name
Browse files Browse the repository at this point in the history
  • Loading branch information
adamkw committed Feb 3, 2019
1 parent 6738375 commit c7d3642
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sublimeless_zk.py
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,8 @@ def insert_link(self, pos=None):
selected_note, _ = show_fuzzy_panel(self.gui.qtabs, 'Insert Link to Note', note_list_dict)

if selected_note:
note_id, title = selected_note.split(' ', 1)
note_id = Project.cut_after_note_id(selected_note)
title = selected_note.replace(note_id, '').lstrip()
link_txt = self.project.style_link(note_id, title)
# check if editor contains [[ right before current cursor position
line, index = editor.getCursorPosition()
Expand Down

0 comments on commit c7d3642

Please sign in to comment.