FIX: TAB-Indented Lines Are Not Cut or Copied with New Line

Last reviewed: September 18, 1997
Article ID: Q119330
1.00 1.50 | 1.00
WINDOWS   | WINDOWS NT
kbtool kbfixlist kbbuglist

The information in this article applies to:

  • The Visual Workbench included with:

        - Microsoft Visual C++ for Windows, versions 1.0 and 1.5
        - Microsoft Visual C++ 32-bit Edition, version 1.0
    

SYMPTOMS

The Visual Workbench fails to remove the carriage-return character from a highlighted line if that line has been indented using the TAB key.

RESOLUTION

If you use the TAB character to indent a line, highlight the line again before you choose Cut or Copy from the Edit menu.

MORE INFORMATION

To reproduce the problem, perform the following steps:

  1. Open Visual Workbench. Open a source file.

  2. Highlight an entire line of text by holding down the primary mouse button at the far left of a line containing a carriage return. Drag the mouse downward until one line is highlighted. You can also highlight the line by holding down the SHIFT key while pressing the DOWN ARROW key.

  3. Press the TAB key. The line will be indented but still highlighted.

  4. Choose Cut from the Edit menu. Notice that the carriage-return character has not been cut with the rest of the text. This is evident because the line you just cut is still there but it is now a line with no text.

  5. Highlight a different line, and this time choose Cut from the Edit menu without using the TAB key to indent the line. Notice that the carriage- return character has been cut properly from the source file.

STATUS

Microsoft has confirmed this to be a bug in the products listed at the beginning of this article. This problem was corrected in Visual C++ version 2.0.


Additional reference words: 1.10 1.00 1.50
KBCategory: kbtool kbfixlist kbbuglist
KBSubcategory: VWBIss
Keywords : VwbIss kbbuglist kbfixlist kbtool
Version : 1.00 1.50 | 1.00
Platform : NT WINDOWS
Solution Type : kbfix


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 18, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.