henrikpersson / rsub

Use rmate with Sublime Text.
458 stars 70 forks source link

File are truncated #5

Closed kayleg closed 11 years ago

kayleg commented 12 years ago

When working with long files, they are truncated at different lengths when saved.

Edit: Only occurs with the bash script, ruby seems fine

partap commented 11 years ago

Cant find ruby script, and I've having the same problem...and a solution.

rmate.sh reads the file with using dd with args: bs=$value count=1 ...I think that's running into system limitations with large values of bs. I switched it to bs=1 count=$value and it seems to work fine. Maybe it's less efficient? I dunno, but way better than saving a file and later discovering that it only saved the first third of it...

tornewuff commented 11 years ago

This is indeed an issue in the bash script's use of dd, not in rsub. I have sent a fix: aurora/rmate#7