Updates for substitute change
parent
87dfd962a2
commit
984c099de6
extra
io/windows/nt/files
ui/commands
|
@ -2,7 +2,7 @@ USING: continuations destructors io.buffers io.files io.backend
|
|||
io.timeouts io.nonblocking io.windows io.windows.nt.backend
|
||||
kernel libc math threads windows windows.kernel32 alien.c-types
|
||||
alien.arrays sequences combinators combinators.lib sequences.lib
|
||||
ascii splitting alien strings ;
|
||||
ascii splitting alien strings assocs ;
|
||||
IN: io.windows.nt.files
|
||||
|
||||
M: windows-nt-io cwd
|
||||
|
@ -60,7 +60,7 @@ M: windows-nt-io root-directory? ( path -- ? )
|
|||
|
||||
M: windows-nt-io normalize-pathname ( string -- string )
|
||||
dup string? [ "pathname must be a string" throw ] unless
|
||||
"/" split "\\" join
|
||||
{ { CHAR: / CHAR: \\ } } substitute
|
||||
cwd swap windows-path+
|
||||
[ "/\\." member? ] right-trim
|
||||
dup peek CHAR: : = [ "\\" append ] when ;
|
||||
|
|
|
@ -51,7 +51,7 @@ GENERIC: command-word ( command -- word )
|
|||
update-gestures ;
|
||||
|
||||
: (command-name) ( string -- newstring )
|
||||
"-" split " " join >title ;
|
||||
{ { CHAR: - CHAR: \s } } substitute >title ;
|
||||
|
||||
M: word command-name ( word -- str )
|
||||
word-name
|
||||
|
|
Loading…
Reference in New Issue