Yukihiro Nakadaira wrote:
> Bram Moolenaar wrote:
> > Patch 7.2.119
> > Problem: Status line is redrawn too often.
> > Solution: Check ScreeenLinesUC[] properly. (Yukihiro Nakadaira)
> > Files: src/screen.c
>
> Sorry, one more patch related to this.
>
> When bold character is overwritten, all of rest characters are redrawn.
>
> See following code in the screen_puts_len() function. At line 6402
> "attr + 1" is assigned to next cell. And "n > HL_ALL" is always true
> when syntax highlighting is used. So once character is drawn, all of
> rest characters are redrawn.
>
> Please check attached patch.
So, this patch avoids drawing more than needed, when there is a bold
character and following characters have some highlighting attribute?
I wonder how one can be 100% sure that the redraw isn't needed.
This code has already been changed mutiple times to fix problems.
We should try to take it towards a more reliable, and thus easier to
understand implementation.
Your other message didn't have an attachment...
--
hundred-and-one symptoms of being an internet addict:
115. You are late picking up your kid from school and try to explain
to the teacher you were stuck in Web traffic.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---