In Cygwin, every candidate contains a carriage return, shown as ^M, at the end when doing counsel-gtags-dwim, so that no result will be matched by selecting any candidate. The minibuffer looks like below:
2 Find Definition:
Foo^M
Bar^M
Using global in both shells of Cygwin and Linux with the exactly same tag files indicates that
the output in Cygwin contains an additional CR.
Cygwin:
Hi,
In Cygwin, every candidate contains a carriage return, shown as
^M
, at the end when doingcounsel-gtags-dwim
, so that no result will be matched by selecting any candidate. The minibuffer looks like below:Using
global
in both shells of Cygwin and Linux with the exactly same tag files indicates that the output in Cygwin contains an additional CR. Cygwin:Linux:
This PR fixes it by simply replacing every
\r\n
with\n
.