Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
iterm2
iterm2
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
    • Locked Files
  • Issues 1,740
    • Issues 1,740
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Commits
  • Issue Boards
  • George Nachman
  • iterm2iterm2
  • Issues
  • #7466

Closed
Open
Opened Jan 11, 2019 by Brian Weitzner@weitzner
  • Report abuse
  • New issue
Report abuse New issue

Shell integration prompt marks clobbers trailing spaces when tab-completing in zsh

Configuration

  • iTerm2 version: 3.2.6
  • OS version: macOS 10.14.2[com.googlecode.iterm2.plist]
  • Attach ~/Library/Preferences/com.googlecode.iterm2.plist
  • Before hitting the tab key: Screen_Shot_2019-01-11_at_1.41.11_PM
  • After hitting the tab key: Screen_Shot_2019-01-11_at_1.42.26_PM

Detailed steps to reproduce the problem

  1. Use zsh with a prompt that includes a trailing space
  2. Install shell integration and mark
  3. Tab complete to see the prompt's trailing space disappear
  4. Setting iterm2_prompt_mark to function iterm2_prompt_mark() {} to remove the mark (or using tmux) prevents the space from being removed.

What happened

The prompt's trailing space is clobbered.

What should have happened

The space should not be clobbered.

Related issues

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
No due date
0
Labels
None
Assign labels
  • View project labels
Reference: gnachman/iterm2#7466