X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;ds=sidebyside;f=ShellPkg%2FLibrary%2FUefiShellDebug1CommandsLib%2FEdit%2FFileBuffer.c;h=ff1d000aeb62384de31a13d4c41f513503fa250a;hb=8bb7441edd2d41b03af0666367ce0bc7a78080a5;hp=ba622983e1a19ccc066da1b7ca961a98d6e44bef;hpb=382e78c09ccaee02c8e709f630c9e094d37be470;p=mirror_edk2.git diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/FileBuffer.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/FileBuffer.c index ba622983e1..ff1d000aeb 100644 --- a/ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/FileBuffer.c +++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/FileBuffer.c @@ -1,7 +1,7 @@ /** @file Implements filebuffer interface functions. - Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved.
+ Copyright (c) 2005 - 2012, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -489,6 +489,7 @@ FileBufferPrintLine ( CHAR16 *Buffer; UINTN Limit; CHAR16 PrintLine[200]; + CHAR16 PrintLine2[250]; // // print start from correct character @@ -506,12 +507,13 @@ FileBufferPrintLine ( } PrintLine[MainEditor.ScreenSize.Column] = CHAR_NULL; + ShellCopySearchAndReplace(PrintLine, PrintLine2, 250, L"%", L"^%", FALSE, FALSE); ShellPrintEx ( 0, (INT32)Row - 1, L"%s", - PrintLine + PrintLine2 ); return EFI_SUCCESS; @@ -1685,8 +1687,8 @@ FileBufferScrollLeft ( /** Delete a char in line - @param[in,out] Line The line to delete in. - @param[in] Pos Position to delete the char at ( start from 0 ). + @param[in, out] Line The line to delete in. + @param[in] Pos Position to delete the char at ( start from 0 ). **/ VOID EFIAPI @@ -1710,8 +1712,8 @@ LineDeleteAt ( /** Concatenate Src into Dest. - @param[in,out] Dest Destination string - @param[in] Src Src String. + @param[in, out] Dest Destination string + @param[in] Src Src String. **/ VOID EFIAPI @@ -2981,7 +2983,7 @@ FileBufferSearch ( // // found // - if (Found == TRUE) { + if (Found) { Column = (Position - 1) + FileBuffer.FilePosition.Column + Offset; Row = FileBuffer.FilePosition.Row; } else { @@ -3000,7 +3002,7 @@ FileBufferSearch ( Found = TRUE; } - if (Found == TRUE) { + if (Found) { // // found //