Improve the input
When you reach the right end of the input, the text is move one char at a time, you can’t see if there’s more text available on the right (for example if you move the cursor to the left).
We should try to imitate what weechat does, it’s far more usable and may be a little more efficient because it requires less refresh.
- Revision 103d097a by mathieui on 2013-06-09T13:18:39Z:
Fix #2183 (do not scroll one char at a time when you reach the end) Now it scrolls horizontally of 1/4 the size of the input
- Revision cae5f649 by mathieui on 2013-07-02T22:21:13Z:
Move backwards in the input the same way we move forward (ref #2183)
- Revision b12a6b3b by louiz on 2013-10-20T21:42:13Z:
Improve the input a lot Noticeable changes: - The input "view" is smarter, it always move to a decent position so we can see enough text around the cursor. - The cursor goes at the end of the input when pasting some long text - The formatting chars (^C and o, b, a, 1, 2, 3 etc) are now visible in the input. This makes it a lot easier to know where these special characters are, to change them and efficiently edit our text (we just lose a little, on the cosmetic side, but who cares) - The code is actually a lot simpler in the functions to move the cursor, insert/delete chars: we do not have to deal with special cases where the formatting characters are actually composed of two chars. fixes #2183