Update nano.py

This commit is contained in:
OusmBlueNinja 2023-08-27 12:01:44 -05:00 committed by GitHub
parent ab7d379424
commit f9906d7b93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,4 @@
#["nano", "packages.nano", ["nano"]]
import os import os
import curses import curses
from pygments import highlight from pygments import highlight
@ -110,4 +111,4 @@ def nano(args):
editor = TextEditor() editor = TextEditor()
editor.file = filename editor.file = filename
editor.load_file(filename) editor.load_file(filename)
curses.wrapper(editor.edit) curses.wrapper(editor.edit)