Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 312 by [email protected]: word wrapping messed up when entering Insert mode with 'c' or 's'
https://code.google.com/p/vim/issues/detail?id=312

What steps will reproduce the problem?
1. set linebreak
2. Fill the line with words until it wraps, make sure that the first character in the wrapped word could still fit on the previous line.
3. Move to anywhere on (one of) the continuation lines.
4. Press 's' to enter Insert mode.

What is the expected output? What do you see instead?
Expected: line breaking prior to the cursor location does not change; word wrapping remains legible. Actual: line breaks before the cursor are recomputed, and do not honor word boundaries any more.

What version of the product are you using? On what operating system?
Vim 7.4.473 on Ubuntu Linux.
For context, vim 7.4.52 on Mint Linux does not have this problem.

Please provide any additional information below.

* When entering Insert mode the cursor seems to move with the text, i.e. keep its location relative to the insert point. * After quitting Insert mode (Esc) the lines of text remain the same, but the cursor seems to move to the screen location where it would supposedly have been had the text layout not changed. * Outside of Insert mode, hitting Ctrl-L would cause the paragraph to rearrange correctly. The cursor would align with the text that has just been edited. * This happens in both Vim and Gvim in the exact same way, so not a terminal issue.
* Happens regardless of the value of showbreak.
* This may be related to the breakindent feature, which is present in my buggy version (7.4.473) but not the good version (7.4.52).

Attaching screenshots before clicking 's', after clicking it, after pressing Esc to quit Insert mode, and after pressing Ctrl-L to rearrange the paragraph.

Attachments:
        Screenshot from 2015-01-09 11:06:13.png  22.1 KB
        Screenshot from 2015-01-09 11:06:46.png  21.9 KB
        Screenshot from 2015-01-09 11:06:53.png  21.5 KB
        Screenshot from 2015-01-09 11:07:01.png  20.8 KB

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui