Do not ignore CUP when y is out of margins, instead clamp to margins

This commit is contained in:
Kovid Goyal
2016-11-30 14:58:34 +05:30
parent f7ad3120cf
commit 95d3f20832
4 changed files with 60 additions and 13 deletions
+1 -1
View File
@@ -119,7 +119,7 @@ screen_nel(Screen *screen) { screen_carriage_return(screen); screen_linefeed(scr
static inline void
handle_normal_mode_char(Screen *screen, uint32_t ch, PyObject DUMP_UNUSED *dump_callback) {
#define CALL_SCREEN_HANDLER(name) REPORT_COMMAND(name, ch); name(screen); break;
#define CALL_SCREEN_HANDLER(name) REPORT_COMMAND(name); name(screen); break;
switch(ch) {
case BEL:
CALL_SCREEN_HANDLER(screen_bell);