Changeset 15127

Show
Ignore:
Timestamp:
07/03/08 23:10:18 (8 weeks ago)
Author:
cho45
Message:

いろいろバグってた

Location:
dotfiles
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • dotfiles/screen/cho45/.screen/pid2screen

    r15126 r15127  
    55pid = ARGV[0] 
    66tty = `/bin/ps -o tty= -p #{pid}`.strip 
    7 win = Pathname.glob("/tmp/screen-tty-*").find {|i| i.read[tty] }.read 
     7win = Pathname.glob("/tmp/screen-tty-*").find {|i| i.read[tty] } 
    88if tty.empty? || !win 
    99        exit 1 
    1010else 
    11         puts win[/\d+$/] 
     11        puts win.to_s[/\d+$/] 
    1212        exit 0 
    1313end 
  • dotfiles/vim/cho45/.vim/vim-wrapper.rb

    r15125 r15127  
    6262 
    6363        raise "swap not found" unless pid 
    64         raise "swap not found" unless target.realpath(true) == Pathname.new(fname).realpath(true) 
     64        raise "swap not found" unless target.realpath == Pathname.new(fname).expand_path.realpath 
    6565 
    6666        winnum = `pid2screen #{pid}`.strip