shouya / ancilla.el

AI assisted code generation/refactory in Emacs
GNU General Public License v3.0
23 stars 3 forks source link

fix: project-current will return nil if there is no project #5

Closed russell closed 1 week ago

russell commented 1 week ago

Because this can return nil, we should check that it has a value before calling out to project-root.

Otherwise the project-root function will fail.

Debugger entered--Lisp error: (cl-no-applicable-method project-root nil)
  signal(cl-no-applicable-method (project-root nil))