Q119330: FIX: TAB-Indented Lines Are Not Cut or Copied with New Line
Article: Q119330
Product(s): Microsoft C Compiler
Version(s): WINDOWS:1.0
Operating System(s):
Keyword(s): kbide kbVCkbbuglist kbfixlist
Last Modified: 25-JUL-2001
-------------------------------------------------------------------------------
The information in this article applies to:
- Microsoft Visual Workbench for Windows, version 1.0, used with:
- Microsoft Visual C++, versions 1.0, 1.5
- *EDITOR Please do not choose this product*Microsoft Visual C++ 32-bit Edition* use 241, 265, 225, 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 query words: 1.10 1.00 1.50
======================================================================
Keywords : kbide kbVC kbbuglist kbfixlist
Technology : kbVSsearch kbAudDeveloper
Version : WINDOWS:1.0
Issue type : kbbug
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.
Copyright Microsoft Corporation 1986-2002.