I meant to put a cd after the touch. I noticed on my laptop it will only
reduce the size of the terminal by one, but in the vm it goes into a
loop. On my laptop:

$ mkdir -p 
~/really/really/really/really/loooonnnnnnnnnnnnnnnnnnnngggggggggggggggggggg/directory/
$ touch 
~/really/really/really/really/loooonnnnnnnnnnnnnnnnnnnngggggggggggggggggggg/directory/foo
$ cd 
~/really/really/really/really/loooonnnnnnnnnnnnnnnnnnnngggggggggggggggggggg/directory/
$ stty size
25 85
$ stty size
25 84
$ stty size
25 83
$ ls
foo
$ stty size
25 81
$

Using the patched gnome-terminal it works fine.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-terminal in Ubuntu.
https://bugs.launchpad.net/bugs/1681585

Title:
  gnome-terminal incorrectly calculates csd size with long titles

Status in GNOME Terminal:
  Fix Released
Status in gnome-terminal package in Ubuntu:
  In Progress

Bug description:
  This is: https://bugzilla.gnome.org/show_bug.cgi?id=769898. I see this
  on 17.04 with gnome3/wayland. For example, if I edit a file using vim
  deep in a directory and save the file, the size of the terminal
  changes (as seen with 'stty size'). There are many different scenarios
  where the terminal size changes and gets smaller and smaller. Using
  the attached debdiff (uploaded to zesty just now) resolves the issue
  for me.

  Tested patch under gnome3/wayland and it fixes the issue. Tested under
  Unity7/X and it introduced no regressions.

To manage notifications about this bug go to:
https://bugs.launchpad.net/gnome-terminal/+bug/1681585/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to