Changeset 94742be8ad29e8941d9eec6835f78633cf0f6142

Show
Ignore:
Timestamp:
11/05/07 21:46:41 (8 months ago)
Author:
Antoine Cellerier <dionoea@videolan.org>
git-committer:
Antoine Cellerier <dionoea@videolan.org> 1194295601 +0000
git-parent:

[786b6c4ad0ca8e7fcb45e090ab4330a26839fc66]

git-author:
Antoine Cellerier <dionoea@videolan.org> 1194295601 +0000
Message:

Revert part of r22952 which broke commands of more than 1000 chars.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • share/luaintf/rc.lua

    r786b6c4 r94742be  
    465465    for _, client in pairs(read) do 
    466466        local input = client:recv(1000) 
     467        local done = false 
    467468        if string.match(input,"\n$") then 
    468469            client.buffer = string.gsub(client.buffer..input,"\r?\n$","") 
     470            done = true 
    469471        elseif client.buffer == "" 
    470472           and ((client.type == host.client_type.stdio and input == "") 
     
    472474            -- Caught a ^D 
    473475            client.buffer = "quit" 
     476            done = true 
    474477        else 
    475478            client.buffer = client.buffer .. input 
    476479        end 
    477         if client.buffer == "" then 
    478             client:send( client.env.prompt ) 
    479         else 
     480        if done then 
    480481            local cmd,arg = split_input(client.buffer) 
    481482            client.buffer = ""