Skip to content

Commit

Permalink
Fix copy of note title from note list
Browse files Browse the repository at this point in the history
  • Loading branch information
studycom-mrobinson committed Feb 24, 2020
1 parent 3049e91 commit 76e607a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions nvpy/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -595,12 +595,8 @@ def cmd_text_button1(self, event):
self.select(idx, silent=False)

def cmd_text_copy(self, event):
# find line that was clicked on
text_index = self.text.index("@%d,%d" % (event.x, event.y))
# go from event coordinate to tkinter text INDEX to note idx!
idx = int(text_index.split('.')[0]) - 1
self.text.clipboard_clear()
self.text.clipboard_append(self.get_title(idx))
self.text.clipboard_append(self.get_title(self.selected_idx))
return "break"

def clear(self):
Expand Down

0 comments on commit 76e607a

Please sign in to comment.