racer-rust / emacs-racer

Racer support for Emacs
399 stars 48 forks source link

Fix getting file name of indirect buffers #74

Closed tspiteri closed 7 years ago

tspiteri commented 7 years ago

Currently M-. does not work in an indirect cloned buffer created with C-x 4 c, as the indirect buffer does not have a file name directly. This patch gets the file name of the base buffer if the current buffer is an indirect buffer, otherwise it gets the file name of the current buffer.

coveralls commented 7 years ago

Coverage Status

Coverage decreased (-0.2%) to 65.922% when pulling ac81325f5c67c68f3378676c0bba9d168ac7f362 on tspiteri:indirect-buffers into 94637305de53c88bf9b6d4769bdb3918dc0c5654 on racer-rust:master.

coveralls commented 7 years ago

Coverage Status

Coverage decreased (-0.2%) to 65.922% when pulling ac81325f5c67c68f3378676c0bba9d168ac7f362 on tspiteri:indirect-buffers into 94637305de53c88bf9b6d4769bdb3918dc0c5654 on racer-rust:master.

Wilfred commented 7 years ago

Nice catch, thanks.