~ubuntu-branches/debian/sid/neovim/sid

« back to all changes in this revision

Viewing changes to src/nvim/os/input.c

  • Committer: Package Import Robot
  • Author(s): James McCoy
  • Date: 2016-04-18 21:42:19 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20160418214219-1e6d4o1fwqarzk46
Tags: 0.1.3-1
* New upstream release.  (Closes: #820562)
* debian/control:
  + Remove unnecessary luarocks Build-Depends
  + Add libkvm-dev Build-Depends for kfreebsd-*
  + Add python(3)-neovim to Recommends.  (Closes: #812737)
  + Declare compiance with policy 3.9.8, no changes needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
250
250
  int col, row, advance;
251
251
  if (sscanf(*ptr, "<%d,%d>%n", &col, &row, &advance) != EOF && advance) {
252
252
    if (col >= 0 && row >= 0) {
 
253
      // Make sure the mouse position is valid.  Some terminals may
 
254
      // return weird values.
 
255
      if (col >= Columns) {
 
256
        col = (int)Columns - 1;
 
257
      }
 
258
      if (row >= Rows) {
 
259
        row = (int)Rows - 1;
 
260
      }
253
261
      mouse_row = row;
254
262
      mouse_col = col;
255
263
    }