aurora / rmate

Remote TextMate 2 implemented as shell script

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Some files truncate into buffer

cdenneen opened this issue · comments

user@host:~$ head -5 /etc/hosts
#
# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# Internet host table
user@host:~$ sudo /tmp/rmate-new.bash /etc/hosts

Buffer opens with only:

#
# Copyrigh

+1 half of the file as result on the serverside

@scher200 do you mean, you have this issue as well? Which system is it this happens on? I wasn't able to reproduce this behavior on any of my systems, so far ...

@aurora yes, I have this issue as well,
Ubuntu 14.04 (mint 17 xfce)

I viewed the code but was amazed it is so short. Could it have something to do with: the # character?
Bot of my half empty files contain this character multiple times.

Not sure it's to do with the '#' character as I'm able to open my my.cnf which is full of them as they're used as comments. Possibly a different issue

I just fixed issue #65, wrong detection of filesize. I wonder if this could be the same issue as what is reported in here. So if anybody of you is still following this, i would be really happy if you could download rmate from master branch and try it again. Thanks!

I am closing this, because there's no feedback and i cannot reproduce the issue.