]> git.eshelyaron.com Git - emacs.git/commit
(ruby-ts-add-log-current-function): Fix when between two methods
authorDmitry Gutov <dgutov@yandex.ru>
Tue, 3 Jan 2023 22:37:43 +0000 (00:37 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Tue, 3 Jan 2023 22:38:01 +0000 (00:38 +0200)
commit0d98fac6bbc19c7728d42d6196adf4d392ba3132
treeb12fa30c6fbd3fc646ec73227502f8a640966f6c
parentda69f116bfc37d28942ca6d35eaff978e6805bac
(ruby-ts-add-log-current-function): Fix when between two methods

* lisp/progmodes/ruby-ts-mode.el
(ruby-ts-add-log-current-function): Fix the case when point is
between two methods.  'treesit-node-at' returs the 'def' node of
the method after point in such case, so it behaved like point was
inside the method below.

* test/lisp/progmodes/ruby-ts-mode-tests.el
(ruby-ts-add-log-current-method-outside-of-method):
Update the test case.

* test/lisp/progmodes/ruby-mode-tests.el
(ruby-add-log-current-method-outside-of-method):
Mirror that change.
lisp/progmodes/ruby-ts-mode.el
test/lisp/progmodes/ruby-mode-tests.el
test/lisp/progmodes/ruby-ts-mode-tests.el