SublimeText/ColdFusion — pull request #125 by tkelley (2013-09-17 21:05:00+00:00)
Title: Updated how CFLIB udfs are found and inserted

I saw a problem in how a udf was found in udfs using index. Basically, I'm keeping track of the selected library index and using that to look up in udfs (along with passed in index for the selected udf).

I also saw that once the code was inserted into the page, a "CR" was put at the end of the line. If I saved the file, closed it & reopened it the "CR" would go away, but there was an extra blank line for each line of inserted code. To fix this I'm replacing "\r" in the code just before it's inserted. It works for me on Windows 7, but I haven't tested on anything else.