Skip to content

Commit

Permalink
fix ycp killing bug with changing \r,\v,\f and \b with space
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Jan 26, 2015
1 parent e5104c7 commit c1c3163
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion library/packages/src/modules/PackageCallbacks.rb
Expand Up @@ -80,7 +80,7 @@ def main
@provide_aborted = false
@source_aborted = false

@back_string = ""
@back_string = "\b\b\b\b\b\b\b\b\b\b"
@clear_string = Ops.add(Ops.add(@back_string, " "), @back_string)

# max. length of the text in the repository popup window
Expand Down
8 changes: 4 additions & 4 deletions library/types/src/modules/String.rb
Expand Up @@ -44,7 +44,7 @@ def main
@calnum = Ops.add(@calpha, @cdigit)
@cpunct = "!\"\#$%&'()*+,-./:;<=>?@[\\]^_`{|}~"
@cgraph = Ops.add(@calnum, @cpunct)
@cspace = " \n\t"
@cspace = "\f\r\n\t\013"
@cprint = Ops.add(@cspace, @cgraph)

# 64 characters is the base undeline length
Expand Down Expand Up @@ -492,11 +492,11 @@ def ParseOptions(options, parameters)
# backslah sequences
backslash_seq = {
"a" => "a", # alert
"b" => "", # backspace
"b" => "\b", # backspace
"e" => "e", # escape
"f" => "", # FF
"f" => "\f", # FF
"n" => "\n", # NL
"r" => " ", # CR
"r" => "\b", # CR
"t" => "\t", # tab
"v" => "v", # vertical tab
"\\" => "\\"
Expand Down

0 comments on commit c1c3163

Please sign in to comment.