MCPcopy
hub / github.com/catppuccin/catppuccin / run

Method run

samples/python1.py:549–557  ·  view source on GitHub ↗
(self, edit)

Source from the content-addressed store, hash-verified

547
548class ShowOriginalPartCommand(DiffCommand, sublime_plugin.TextCommand):
549 def run(self, edit):
550 diff_parser = DiffParser.instance
551 if not diff_parser:
552 return
553
554 (row, col) = self.view.rowcol(self.view.sel()[0].begin())
555 (lines, start, replace_lines) = diff_parser.get_original_part(row + 1)
556 if lines is not None:
557 self.panel(self.join_lines(lines))
558
559
560class ReplaceModifiedPartCommand(DiffCommand, sublime_plugin.TextCommand):

Callers

nothing calls this directly

Calls 3

get_original_partMethod · 0.80
panelMethod · 0.80
join_linesMethod · 0.80

Tested by

no test coverage detected