Mercurial > vim
comparison src/os_unix.c @ 17903:73f4bb1fdfba v8.1.1948
patch 8.1.1948: mouse doesn't work in Linux console
Commit: https://github.com/vim/vim/commit/b5432d8968bda70fc20ebb5e136e367d174d1c4e
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Aug 30 19:28:25 2019 +0200
patch 8.1.1948: mouse doesn't work in Linux console
Problem: Mouse doesn't work in Linux console and causes 100% CPU. (James P.
Harvey)
Solution: Loop in WaitForCharOrMouse() when gpm_process_wanted is set.
(closes #4828)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 30 Aug 2019 19:30:03 +0200 |
parents | 10696f279e20 |
children | 8f4cc259ed7a |
comparison
equal
deleted
inserted
replaced
17902:2aca8219903f | 17903:73f4bb1fdfba |
---|---|
6005 # endif | 6005 # endif |
6006 # ifdef FEAT_MOUSE_GPM | 6006 # ifdef FEAT_MOUSE_GPM |
6007 gpm_process_wanted = 0; | 6007 gpm_process_wanted = 0; |
6008 avail = RealWaitForChar(read_cmd_fd, msec, | 6008 avail = RealWaitForChar(read_cmd_fd, msec, |
6009 &gpm_process_wanted, interrupted); | 6009 &gpm_process_wanted, interrupted); |
6010 if (!avail && !gpm_process_wanted) | |
6010 # else | 6011 # else |
6011 avail = RealWaitForChar(read_cmd_fd, msec, NULL, interrupted); | 6012 avail = RealWaitForChar(read_cmd_fd, msec, NULL, interrupted); |
6012 # endif | |
6013 if (!avail) | 6013 if (!avail) |
6014 # endif | |
6014 { | 6015 { |
6015 if (!ignore_input && input_available()) | 6016 if (!ignore_input && input_available()) |
6016 return 1; | 6017 return 1; |
6017 # ifdef FEAT_XCLIPBOARD | 6018 # ifdef FEAT_XCLIPBOARD |
6018 if (rest == 0 || !do_xterm_trace()) | 6019 if (rest == 0 || !do_xterm_trace()) |