If redrawing the region would mean redrawing > half the pane, just schedule to
redraw the entire window. Also add a flag to skip updating the window any
further if it is scheduled to be redrawn. This has the effect of batching
multiple redraws together.

6 files changed
tree: dbaf49303a66ed67b85927b19d013307e23fd9b9
  1. CHANGES
  2. FAQ
  3. GNUmakefile
  4. Makefile
  5. NOTES
  6. TODO
  7. arg.c
  8. array.h
  9. attributes.c
  10. buffer-poll.c
  11. buffer.c
  12. cfg.c
  13. client-fn.c
  14. client-msg.c
  15. client.c
  16. clock.c
  17. cmd-attach-session.c
  18. cmd-bind-key.c
  19. cmd-break-pane.c
  20. cmd-choose-session.c
  21. cmd-choose-window.c
  22. cmd-clock-mode.c
  23. cmd-command-prompt.c
  24. cmd-copy-buffer.c
  25. cmd-copy-mode.c
  26. cmd-delete-buffer.c
  27. cmd-detach-client.c
  28. cmd-down-pane.c
  29. cmd-find-window.c
  30. cmd-generic.c
  31. cmd-has-session.c
  32. cmd-kill-pane.c
  33. cmd-kill-server.c
  34. cmd-kill-session.c
  35. cmd-kill-window.c
  36. cmd-last-window.c
  37. cmd-link-window.c
  38. cmd-list-buffers.c
  39. cmd-list-clients.c
  40. cmd-list-commands.c
  41. cmd-list-keys.c
  42. cmd-list-sessions.c
  43. cmd-list-windows.c
  44. cmd-list.c
  45. cmd-load-buffer.c
  46. cmd-lock-server.c
  47. cmd-move-window.c
  48. cmd-new-session.c
  49. cmd-new-window.c
  50. cmd-next-layout.c
  51. cmd-next-window.c
  52. cmd-paste-buffer.c
  53. cmd-previous-window.c
  54. cmd-refresh-client.c
  55. cmd-rename-session.c
  56. cmd-rename-window.c
  57. cmd-resize-pane-down.c
  58. cmd-resize-pane-up.c
  59. cmd-respawn-window.c
  60. cmd-save-buffer.c
  61. cmd-scroll-mode.c
  62. cmd-select-pane.c
  63. cmd-select-prompt.c
  64. cmd-select-window.c
  65. cmd-send-keys.c
  66. cmd-send-prefix.c
  67. cmd-server-info.c
  68. cmd-set-buffer.c
  69. cmd-set-option.c
  70. cmd-set-password.c
  71. cmd-set-window-option.c
  72. cmd-show-buffer.c
  73. cmd-show-options.c
  74. cmd-show-window-options.c
  75. cmd-source-file.c
  76. cmd-split-window.c
  77. cmd-start-server.c
  78. cmd-string.c
  79. cmd-suspend-client.c
  80. cmd-swap-window.c
  81. cmd-switch-client.c
  82. cmd-unbind-key.c
  83. cmd-unlink-window.c
  84. cmd-up-pane.c
  85. cmd.c
  86. colour.c
  87. compat/
  88. examples/
  89. grid-view.c
  90. grid.c
  91. index.html.in
  92. input-keys.c
  93. input.c
  94. key-bindings.c
  95. key-string.c
  96. layout.c
  97. log.c
  98. mode-key.c
  99. names.c
  100. options-cmd.c
  101. options.c
  102. osdep-darwin.c
  103. osdep-freebsd.c
  104. osdep-linux.c
  105. osdep-netbsd.c
  106. osdep-openbsd.c
  107. osdep-unknown.c
  108. paste.c
  109. resize.c
  110. screen-redraw.c
  111. screen-write.c
  112. screen.c
  113. server-fn.c
  114. server-msg.c
  115. server.c
  116. session.c
  117. status.c
  118. tmux.1
  119. tmux.c
  120. tmux.h
  121. tty-keys.c
  122. tty-term.c
  123. tty-write.c
  124. tty.c
  125. utf8.c
  126. util.c
  127. util/
  128. window-choose.c
  129. window-clock.c
  130. window-copy.c
  131. window-more.c
  132. window-scroll.c
  133. window.c
  134. xmalloc-debug.c
  135. xmalloc.c