Sync OpenBSD patchset 401:

When drawing lines that have wrapped naturally, don't force a newline but
permit them to wrap naturally again. This allows terminals that use this to
guess where lines start and end for eg mouse selecting (like xterm) to work
correctly.

This was another long-standing issue raised by several people over the last
while.

Thanks to martynas@ for much testing. This was not trivial to get right so
bringing it in for wider testing and adn to fix any further glitches in-tree.

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