From 2376c4bf290d46c231359663f6d0a97d57095875 Mon Sep 17 00:00:00 2001 From: Krzosa Karol Date: Tue, 31 Jan 2023 16:36:09 +0100 Subject: [PATCH] Fix error on breakpoint setting --- remedy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/remedy.py b/remedy.py index 3eb53d8..65271a2 100644 --- a/remedy.py +++ b/remedy.py @@ -365,7 +365,7 @@ class RemedyInstance: filename, line, cursor = RemedyInstance.filename_and_line() self.goto_file_at_line(filename, line) - def breakpoint_on_cursor(self, expr = None): + def breakpoint_on_cursor(self, view): filename, line, cursor = RemedyInstance.filename_and_line() self.toggle_breakpoint(view, filename, line, sublime.Region(cursor)) @@ -520,7 +520,7 @@ class RemedyGotoCursorCommand(sublime_plugin.TextCommand): class RemedySetBreakpointCommand(sublime_plugin.TextCommand): def run(self, edit): if remedy_instance.try_launching(): return - remedy_instance.breakpoint_on_cursor() + remedy_instance.breakpoint_on_cursor(self.view) class RemedySetConditionalBreakpointCommand(sublime_plugin.TextCommand): def run(self, edit):