-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use guru's -modified flag #944
Conversation
Pass the -modified flag and the buffer contents to guru on stdin when the buffer has been modified instead of having to manage a temp file manually.
I see the same behavior on the latest release, too, though; it wasn't introduced in this PR. The problem is due to Line 118 in 595df51
drop should be used instead of edit , but I'm not sure. I started to fix it, but then noticed #928, which fixes the problem. However, #928 has a different problem that I'll describe there.
|
I duplicated what you were seeing and thought it was a separable task, so I reverted PTAL |
if bufloaded(filename) == 0 | ||
tab split | ||
let l:fname = fnamemodify(expand("%"), ':p:gs?\\?/?') | ||
if filename != l:fname |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can early return here, but I'll do that with a follow up commit. Thanks
Thanks @bhcleek, great addition 👍 |
Pass the -modified flag and the buffer contents to guru on stdin when
the buffer has been modified instead of having to manage a temp file
manually.