[vlc-commits] cli: use dedicated strip function

Pierre Ynard git at videolan.org
Sat Apr 2 19:27:32 CEST 2011


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Sat Apr  2 19:27:07 2011 +0200| [9d6a0a6ac88a8e26cff0f5123b6381e158cece64] | committer: Pierre Ynard

cli: use dedicated strip function

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9d6a0a6ac88a8e26cff0f5123b6381e158cece64
---

 share/lua/intf/cli.lua |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/share/lua/intf/cli.lua b/share/lua/intf/cli.lua
index 567f07c..dc0a55c 100644
--- a/share/lua/intf/cli.lua
+++ b/share/lua/intf/cli.lua
@@ -802,7 +802,7 @@ while not vlc.misc.should_die() do
 
             -- get the next command
             local index = string.find(client.cmds, "\n")
-            client.buffer = string.gsub(string.sub(client.cmds, 0, index - 1), "^%s*(.-)%s*$", "%1")
+            client.buffer = strip(string.sub(client.cmds, 0, index - 1))
             client.cmds = string.sub(client.cmds, index + 1)
 
             -- Remove telnet commands from the command line



More information about the vlc-commits mailing list