Skip to content

Commit d802831

Browse files
authored
Revert "Remove buffer restriction when writing temp file"
1 parent 78adcad commit d802831

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ This program is free software: you can redistribute it and/or modify it under th
4848

4949
This issue is a known bug in `ansible-lint`, not in `flymake-ansible-lint`.
5050

51-
It is `ansible-lint` that truncates some error messages:
51+
It is `ansible-lint` that cuts off error messages:
5252
```
5353
$ ansible-lint -p test.yaml
5454
test.yaml:5: yaml[truthy]: Truthy value should be one of

flymake-ansible-lint.el

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,7 @@ Returns the path of the newly created temporary file."
259259
(file-exists-p temp-file-path)))
260260
(setq counter (1+ counter)))
261261
(unless (file-exists-p temp-file-path)
262-
(save-restriction
263-
(widen)
264-
(write-region (point-min) (point-max) temp-file-path nil 'quiet))
262+
(write-region (point-min) (point-max) temp-file-path nil 'quiet)
265263
temp-file-path))))
266264

267265
(flymake-ansible-lint--quickdef-backend flymake-ansible-lint-backend

0 commit comments

Comments
 (0)